<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
/*
 * v1版本API
 * */
if(App::environment("local","beta") && Request::path()) Log::info("request",array_merge(array("api" => Request::path()),Input::all()));
if(Request::path() == 'report/receiveDataFromSXP'){Log::info(['suixingpay_request'=>file_get_contents('php://input')]);}
Route::group(array('prefix' => '/v1'),function(){
    /*
     * 微信站请求API weixin website
     * */
    Route::group(array('prefix' => '/wxw'),function(){
        /*
         * 用户
         * */
        Route::group(array('prefix' => '/user'),function(){
            /*
             * test
             * */
            Route::any('/test','WxwUserController@test');//测试

            /*
             * 用户注册登录类API
             * */
            Route::any('/sms_check_code','WxwUserController@sms_check_code');//用户申请短信验证码
            Route::any('/login','WxwUserController@user_login');//用户登录注册接口

            /*
             * 用户车辆信息
             * */
            Route::any('/car_list','WxwUserController@car_list');//用户车辆列表
            Route::any('/car_add','WxwUserController@car_add');//用户添加车辆
            Route::any('/car_mod','WxwUserController@car_mod');//用户修改车辆
            Route::any('/car_del','WxwUserController@car_del');//用户删除车辆

            /*
             * 用户常用地址信息
             * */
            Route::any('/address_list','WxwUserController@address_list');//用户常用地址列表
            Route::any('/address_add','WxwUserController@address_add');//用户添加常用地址
            Route::any('/address_mod','WxwUserController@address_mod');//用户修改常用地址
            Route::any('/address_del','WxwUserController@address_del');//用户删除常用地址

            /*
             * 用户session
             * */
            Route::any('/session_set','WxwUserController@session_set');//用户session保存
            Route::any('/session_get','WxwUserController@session_get');//用户session获取

        });

        /*
         * 车辆
         * */
        Route::group(array('prefix' => '/car'),function(){
            /*
             * 车辆信息类 API
             * */
            Route::any('/brands','WxwCarController@brands');//车辆品牌
            Route::any('/series','WxwCarController@series');//车辆系列
            Route::any('/model_select','WxwCarController@model_select');//车型的年份、排量、变速箱
            Route::any('/model_year','WxwCarController@model_year');//车型的年款
            Route::any('/model_gas_rate','WxwCarController@model_gas_rate');//车型的排量
            Route::any('/model_gear_box','WxwCarController@model_gear_box');//车型的变速箱
        });

        /*
         * 市场
         * */
        Route::group(array('prefix' => '/market'),function(){
            /*
             * 车辆信息类 API
             * */
            Route::any('/ads','WxwMarketController@ads');//广告信息

        });

        /*
         * 产品
         * */
        Route::group(array('prefix' => '/product'),function(){
            /*
             * 产品信息类 API
             * */
            Route::any('/promotion','WxwProductController@promotion');//推广产品信息
            Route::any('/base','WxwProductController@base');//基础产品信息
            Route::any('/base_package','WxwProductController@base_package');//基础产品对应产品包信息
            Route::any('/base_package_item','WxwProductController@base_package_item');//基础产品对应产品包信息-对应产品项信息
        });

        /*
         * 订单
         * */
        Route::group(array('prefix' => '/order'),function(){
            /*
             * 订单信息类 API
             * */
            Route::any('/shop','WxwOrderController@shop');//可用门店信息
            Route::any('/car','WxwOrderController@car');//可用保养车信息
            Route::any('/create','WxwOrderController@create');//下单
            Route::any('/cancel','WxwOrderController@cancel');//取消订单
            Route::any('/history','WxwOrderController@history');//订单列表
            Route::any('/show','WxwOrderController@show');//订单详情
        });

    });




    /*
     * 内部员工请求API callcenter manager system
     * */
    Route::group(array('prefix' => '/cms'), function(){
        /*
         * 用户
         * */
        Route::group(array('prefix' => '/user'),function(){
            /*
             * test
             * */
            Route::any('/login','CrmUserController@login');
        });
        /*
         * 用户
         * */
        Route::group(array('prefix' => '/push_message'),function(){
            Route::any('/pushMessage','PushMessageController@pushMessage');
            Route::any('/pushWechat','PushMessageController@pushWechat');
        });
    });
    /**
     * @Author:      lyt
     * @DateTime:    2016-02-22 18:08:52
     * @Description: 用于客户端的借口
     */
    Route::group(array('prefix' => '/custom'), function(){

        Route::group(array('prefix' => '/comm'),function(){

            Route::any('/app_version','CustomCommController@app_version');
        });
    });
    /*
     * 技师端请求API shop car engineer
     * */
    Route::group(array('prefix' => '/sce'), function(){
        /*
         * 报表类API
         * */
        Route::group(array('prefix' => '/report'),function() {
            Route::any('/total_operating_data','SceReportController@total_operating_data'); //经营数据
            Route::any('/total_order_data','SceReportController@total_order_data'); //流水数据
            Route::any('/detail_order_data','SceReportController@detail_order_data'); //流水数据详情
            Route::any('/engineer_work_total','SceReportController@engineer_work_total'); //技师绩效数据
            Route::any('/engineer_work_total_time','SceReportController@engineer_work_total_time'); //当前技师端登陆的技师绩效数据
            Route::any('/order_receivable_detail','SceReportController@order_receivable_detail'); //应收明细
            Route::any('/order_non_receivable_detail','SceReportController@order_non_receivable_detail'); //未收明细

        });

        /*
         * 门店类API
         * */
        Route::group(array('prefix' => '/shop'),function() {
            Route::any('/car_login_work_station','SceShopController@car_login_work_station'); //车辆确认停车入工位
            Route::any('/order_login_work_station','SceShopController@order_login_work_station'); //订单继续维修  重新入工位
            Route::any('/traininglists','SceShopController@traininglists'); //培训信息 列表
            Route::any('/trainingdesc','SceShopController@trainingdesc'); //培训信息详情
            Route::any('/inPark','SceShopController@inPark'); //车辆入停车场
        });

        /*
         * 车辆类API
         * */
        Route::group(array('prefix' => '/car'),function(){
            Route::any('/search','SceCarController@search'); //查询车辆信息
            Route::any('/brands','SceCarController@brands'); //车辆品牌信息
            Route::any('/series','SceCarController@series'); //车辆系列信息
            Route::any('/years','SceCarController@years'); //车辆系列信息
            Route::any('/models','SceCarController@models'); //车辆型号信息
            Route::any('/get_order_detection_history','SceCarController@get_order_detection_history'); //获取检测增值项

        });

        /*
         * 技师类API
         * */
        Route::group(array('prefix' => '/user'),function(){
            Route::any('/login','SceUserController@login'); //登陆
            Route::any('/logout','SceUserController@logout'); //登出
            Route::any('/update','SceUserController@update'); //更新信息
            Route::any('/updatePwd','SceUserController@updatePwd'); //修改密码
            Route::any('/updatePwd2','SceUserController@updatePwd2'); //根据用户名修改密码
            Route::any('/managerLogin','SceUserController@managerLogin'); //店长登陆
            Route::any('/imeiInfo', 'SceUserController@imeiInfo'); //查出当前设备所属门店
        });

        /*
         * 技师类API
         * */
        Route::group(array('prefix' => '/users'),function(){
            Route::any('/login','SceUsersController@login'); //登陆
            Route::any('/logout','SceUsersController@logout'); //登出
        });
        
        /*
         * 微信支付状态API
         * */
        Route::group(array('prefix' => '/wx_pay'),function(){
            Route::any('/wx_pay_list','SceWxPayController@wx_pay_list'); //登陆
        });
        
        /*
         * 基础类API
         * */
        Route::group(array('prefix' => '/comm'),function(){
            Route::any('/car_no_area','SceCommonController@car_no_area'); //车牌地区
            Route::any('/app_version','SceCommonController@app_version'); //app版本检测
            Route::any('/app_update','SceCommonController@app_update');
            Route::any('/sce_error_log','SceCommonController@sce_error_log');//保存技师端报错信息
            Route::any('/car_show_vin','SceCommonController@car_show_vin');//是否显示WIN

            Route::any('/scanning','SceScanningController@scanning');//门店扫描设备
            Route::any('/scanningDeparture','SceScanningController@scanningDeparture');//门店扫描设备离店
        });

        /*
         * 订单类API
         * */
        Route::group(array('prefix' => '/order'),function(){
            Route::any('/filling_smy','SceOrderController@filling_smy'); //查询车辆订单
            Route::any('/search','SceOrderController@search'); //查询车辆订单
            Route::any('/servicing','SceOrderController@servicing'); //查询车辆订单
            Route::any('/show','SceOrderController@show'); //订单详情
            Route::any('/create','SceOrderController@create'); //订单创建
            Route::any('/cancel','SceOrderController@cancel'); //订单取消
            Route::any('/complete','SceOrderController@complete'); //订单完成
            Route::any('/update_user_info','SceOrderController@update_user_info'); //更新订单用户信息（订单确认）
            Route::any('/update_car_info','SceOrderController@update_car_info'); //更新订单车辆信息
            Route::any('/update_car_info','SceOrderController@update_car_info'); //更新订单车辆信息
            Route::any('/update_order_mileage','SceOrderController@update_order_mileage'); //更新订单里程信息
            Route::any('/update_base_info','SceOrderController@update_base_info'); //更新订单基础信息
            Route::any('/search_check_info','SceOrderController@search_check_info'); //订单检测报告查询

            Route::any('/search_product_info','SceOrderController@search_product_info'); //订单产品查询
            Route::any('/add_product_info','SceOrderController@add_product_info'); //订单产品新增
            Route::any('/change_product_info','SceOrderController@change_product_info'); //修改产品信息（增减数量和金额）
            Route::any('/delete_product_info','SceOrderController@delete_product_info'); //订单产品删除
            Route::any('/insert_product_flows','SceOrderController@insert_product_flows'); //记录订单流转信息

            Route::any('/get_engineer_list','SceOrderController@get_engineer_list'); //更换技师获取待选技师列表
            Route::any('/change_engineer_check','SceOrderController@change_engineer_check'); //更换技师主管审批接口
            Route::any('/order_recheck','SceOrderController@order_recheck'); //订单复检接口
            Route::any('/manager_list','SceOrderController@manager_list'); //获取当前门店店长列表
            
            Route::any('/order_supply_recheck','SceOrderController@order_supply_recheck'); //订单耗材检测接口
            Route::any('/save_ring_check','SceOrderController@save_ring_check'); //保存订单环检信息
            Route::any('/get_ring_check','SceOrderController@get_ring_check'); //获取订单环检信息


            Route::any('/get_30_check','SceOrderController@get_30_check'); //获取订单30项检测信息  --废弃 3月2号上线废弃
            Route::any('/save_30_check','SceOrderController@save_30_check'); //保存订单30项检测信息 --废弃 3月2号上线废弃
            Route::any('/maintenanceRecord', 'SceOrderController@maintenanceRecord'); //用于返回车牌号的历史维修记录              

            Route::any('/get_exception_detection','SceOrderController@get_exception_detection'); //获取检测异常项目
            Route::any('/update_exception_detection','SceOrderController@update_exception_detection'); //更新检测异常项目
            Route::any('/get_detection','SceOrderController@get_detection'); //获取检测模板
            Route::any('/get_detection_product','SceOrderController@get_detection_product'); //获取检测增值项
            Route::any('/save_detection','SceOrderController@save_detection'); //获取检测增值项
            Route::any('/get_order_detection','SceOrderController@get_order_detection'); //获取检测增值项

            Route::any('/update_insurance_date','SceOrderController@update_insurance_date'); //保存保险到期日
            
            
        });

        Route::group(array('prefix' => '/carwash'),function(){
            Route::any('/washOrderPanel','SceCarWashOrderController@washOrderPanel'); //洗车单面板
            Route::any('/washOrderDeparture','SceCarWashOrderController@washOrderDeparture'); //洗车单离店
        });

        /*
         * 客户类API
         * */
        Route::group(array('prefix' => '/custom'),function(){
            Route::any('/search_by_car','SceCustomController@search_by_car'); //查询用户通过车辆
            Route::any('/search_by_phone','SceCustomController@search_by_phone'); //查询用户通过手机
            Route::any('/confirm_user_car_info','SceCustomController@confirm_user_car_info'); //认证用户车辆
        });
        
        /*
         * 技师端消息提醒
         * */
        Route::group(array('prefix' => '/remind'),function(){
            Route::any('/is_remind','SceRemindController@is_remind'); //当前用户是否有新的提醒
            Route::any('/remind_list','SceRemindController@remind_list'); //技师当天提醒列表
            Route::any('/all_list','SceRemindController@all_list'); //技师所有消息提醒
            Route::any('/update_remind','SceRemindController@update_remind'); //关闭提醒
        });
        
    });

    /**
     * scs 请求的 API的借口
     */
    Route::group(array('prefix' => '/scs'), function(){

        Route::group(array('prefix' => '/helppublic'),function(){
            Route::any('/helplists','ScsHelpPubllcController@helplists'); //帮助信息列表
            Route::any('/helpdesc','ScsHelpPubllcController@helpdesc'); //帮助信息详情
            
            Route::any('/publiclists','ScsHelpPubllcController@publiclists'); //公告信息列表
            Route::any('/publicdesc','ScsHelpPubllcController@publicdesc'); //公告信息详情

            Route::any('/traininglists','ScsHelpPubllcController@traininglists');   //门店培训信息列表
            Route::any('/trainingdesc','ScsHelpPubllcController@trainingdesc');     //门店培训信息详情
        });
        
        Route::group(array('prefix' => '/notice'),function(){
            Route::any('/list','ScsHelpPubllcController@noticeLists'); //站内信信息列表
            Route::any('/alreadyRead','ScsHelpPubllcController@alreadyRead'); //站内信一键已读
            Route::any('/activity','ScsHelpPubllcController@noticeActivity'); //站内信活动列表
            Route::any('/notReadNotice','ScsHelpPubllcController@notReadNotice'); //未读信息列表
            Route::any('/noticeInfo','ScsHelpPubllcController@noticeInfo'); //站内信详情
        });
        
        /*
         * 账务接口
         */
        Route::group(array('prefix' => '/account'),function(){
            Route::any('/arrears_detail','ScsAccountController@arrears_detail'); //欠款统计
            Route::any('/remark_store','ScsAccountController@remark_store'); //用户账务
            Route::any('/remark_list','ScsAccountController@remark_list'); //用户账务
            Route::any('/detail','ScsAccountController@detail'); //用户账务
            Route::any('/detail','ScsAccountController@detail'); //用户账务
            Route::any('/journal','ScsAccountController@journal'); //账务流水    
            Route::any('/user_recharge','ScsAccountController@user_recharge'); //门店充值接口       can_cancel 
            Route::any('/can_cancel','ScsAccountController@can_cancel'); //用户能撤销充值记录
            Route::any('/cancel_aur','ScsAccountController@cancel_aur'); //撤销用户的充值记录
            Route::any('/return_amount','ScsAccountController@return_amount'); //用户退款           

            Route::any('/begin_balance_list','ScsAccountController@begin_balance_list'); //用户期初余额list
            Route::any('/begin_balance_detail','ScsAccountController@begin_balance_detail'); //用户期初余额详情   
            Route::any('/begin_balance_recharge','ScsAccountController@begin_balance_recharge'); //用户期初余额划拨充值

            Route::any('/account_subject','ScsAccountController@account_subject'); //财务科目信息            
            Route::any('/rechargeRecords','ScsAccountController@rechargeRecords'); //支付记录
            Route::any('/refundRecords','ScsAccountController@refundRecords'); //退款记录
            Route::any('/refundRecordsList','ScsAccountController@refundRecordsList'); //退款记录详情

            Route::any('/can_stop_undo','ScsAccountController@can_stop_undo'); //撤销中的 撤销记录
            Route::any('/cancen_undo','ScsAccountController@cancen_undo'); //撤销的取消
            

        });

        /*
         * 企业接口
         */
        Route::group(array('prefix' => '/company'),function(){
            Route::any('/lists','ScsCompanyController@lists'); //企业用户列表
            Route::any('/detail','ScsCompanyController@detail'); //企业用户详情
            Route::any('/getCommonCities','ScsCompanyController@getCommonCities'); //添加车辆用的城市列表
            Route::any('/overdueOrders','ScsCompanyController@overdueOrders'); //企业逾期订单列表列表
            Route::any('/accountDayStatus','ScsCompanyController@accountDayStatus'); //用户的账期信息
        });

        /*
         * 企业接口
         */
        Route::group(array('prefix' => '/customer'),function(){
            Route::any('/check','ScsCustomerController@check'); //个人用户列表
            Route::any('/update','ScsCustomerController@update'); //个人用户列表
            Route::any('/store','ScsCustomerController@store'); //个人用户列表
            Route::any('/lists','ScsCustomerController@lists'); //个人用户列表
            Route::any('/detail','ScsCustomerController@detail'); //个人用户详情
            Route::any('/sendMessage','ScsCustomerController@sendMessage'); //更换电话发送验证码
        });

        /*
         * scs 用户API
         * */
        Route::group(array('prefix' => '/user'),function(){
            Route::any('/login','ScsUserController@login'); //登陆
            Route::any('/logout','ScsUserController@logout'); //登出
            Route::any('/lists','ScsUserController@lists'); //用户列表
            Route::any('/checkToken','ScsUserController@checkToken'); //验证token
            Route::any('/modifyPwd','ScsUserController@modifyPwd'); //修改密码
            Route::any('/modifyPwd2','ScsUserController@modifyPwd2'); //通过用户名修改密码
            Route::any('/first_login','ScsUserController@first_login'); //通过用户名修改密码
            Route::any('/add_login_num','ScsUserController@add_login_num'); //增加一次登陆次数
        });
        /*
         * me 用户API
         * */
        Route::group(array('prefix' => '/engineer'),function(){
            Route::any('/login','ScsMaintenanceEngineerController@login'); //登陆
            Route::any('/logout','ScsMaintenanceEngineerController@logout'); //登出
            Route::any('/checkToken','ScsMaintenanceEngineerController@checkToken'); //验证token
            Route::any('/modifyPwd','ScsMaintenanceEngineerController@modifyPwd'); //修改密码
        });

        /**
         *业务看板接口
         */
        Route::group(array('prefix' => '/panel',"before"=>"in_park_sub_filit"),function(){
            Route::any('/inPark','ScsPanelController@inPark'); //入停车场
        }); 

        Route::group(array('prefix' => '/panel'),function(){
            Route::any('/stationlist','ScsPanelController@stationlist'); //门店看板工位信息
            Route::any('/station','ScsPanelController@station'); //门店单个工位信息
            Route::any('/station_carinfo','ScsPanelController@station_carinfo'); //门店看板车辆信息
            Route::any('/parkList','ScsPanelController@parkList'); //门店看板停车场信息
            Route::any('/inAppointment','ScsPanelController@inAppointment'); //用于展示 当天预约 未到店的
            Route::any('/out_station','ScsPanelController@out_station'); //服务完成车辆出位
            
            Route::any('/clearstation','ScsPanelController@clearstation'); //清空 车位信息
            Route::any('/call_back','ScsPanelController@call_back'); //预约看板的回访
            Route::any('/outsideOrders','ScsPanelController@outsideOrders'); //外调查询
            Route::any('/outsideCitys','ScsPanelController@outsideCitys'); //外调查询(城市)
            Route::any('/outsideShops','ScsPanelController@outsideShops'); //外调查询(门店)
        });

        /**
         *数据看板接口
         */
        Route::group(array('prefix' => '/operational'),function(){
            Route::any('/getMoneyData','ScsOperationalController@getMoneyData'); //门店运营看板金额数据
            Route::any('/getClassifyData','ScsOperationalController@getClassifyData'); //门店运营看板分类数据
            Route::any('/getEvaluationData','ScsOperationalController@getEvaluationData'); //门店运营看板评价数据
            Route::any('/getCarData','ScsOperationalController@getCarData'); //门店运营看板车数据
            Route::any('/getUserCountData','ScsOperationalController@getUserCountData'); //门店运营看板用户数据
            Route::any('/getDailyData','ScsOperationalController@getDailyData'); //门店运营看板日报表
        });


        /**
         *运营看板接口
         */
        Route::group(array('prefix' => '/Manage'),function(){
            Route::any('/scrapInfo','ScsManageController@scrapInfo'); //门店运营看板金额数据
            Route::any('/insertScrap','ScsManageController@insertScrap'); //添加废品信息
        });
        
        /**
         *搜索接口
         */
        Route::group(array('prefix' => '/search'),function(){
            Route::any('/search_order','ScsSearchController@search_order'); //订单搜索功能
            Route::any('/search_orders','ScsSearchController@search_orders'); //订单搜索功能
            Route::any('/search_user','ScsSearchController@search_user'); //用户的搜索

            Route::any('/search_carno','ScsSearchController@search_carno');//新版本的用户下单流程

            Route::any('/search_user_car_wash','ScsSearchController@search_user_car_wash');//洗车单搜索下单路径
            Route::any('/search_user_args','ScsSearchController@search_user_args');//用户搜索 查找各种用户
            Route::any('/search_user_noargs','ScsSearchController@search_user_noargs');//用户搜索 查找各种用户 不包含特俗用户的
            Route::any('/search_history_maintain','ScsSearchController@search_history_maintain');   //回保查询    [ 查看在店保养服务周期内未回保的车辆及信息 ]
            Route::any('/get_car_model_level','ScsSearchController@get_car_model_level');           //获取车型级别
            Route::any('/history_maintain_visit','ScsSearchController@history_maintain_visit');     //历史保养订单回访记录添加与更新
            Route::any('/get_return_visit','ScsSearchController@get_return_visit');                 //根据保养订单号获取回访信息
            

        });


        /*
         * scs 工位接口
         * */
        Route::group(array('prefix' => '/station'),function(){
            Route::any('/lists', 'ScsMainStationController@lists'); //列表
            Route::any('/create','ScsMainStationController@create'); //创建
            Route::any('/update','ScsMainStationController@update'); //更新
            Route::any('/delete','ScsMainStationController@delete'); //删除
            Route::any('/listPad','ScsMainStationController@listPad'); //获取该店的 pad列表
            Route::any('/deletePad','ScsMainStationController@deletePad'); //获取该店的 pad列表


            Route::any('/scanning','ScsScanningController@scanning'); //获取本店当天的扫描设备
            Route::any('/scanningDeparture','ScsScanningController@scanningDeparture'); //门店的扫描照片离店
        });

        /**
         * @Author:      lyt
         * @DateTime:  2017-03-22 16:26:51
         * @Description: 洗车单的路由
         */
        Route::group(array('prefix' => '/carwashorder' ,"before"=>"car_wash_submission"),function(){
            Route::any('/create','ScsCarWashOrderController@create'); //创建洗车单
        });
        Route::group(array('prefix' => '/carwashorder'),function(){
            Route::any('/products', 'ScsCarWashOrderController@products'); //服务包信息
            
            Route::any('/show','ScsCarWashOrderController@show'); //洗车单详情
            Route::any('/check_code','ScsCarWashOrderController@check_code'); //检验 

            Route::any('/weixinpay','ScsCarWashOrderController@weixinpay'); //订单的微信支付

            Route::any('/cancelOrder','ScsCarWashOrderController@cancelOrder'); //取消订单
            Route::any('/total','ScsCarWashOrderController@total'); //统计支付分类


            Route::any('/serviceCard','ScsCarWashOrderController@serviceCard'); //洗车单能用的套餐卡            
            Route::any('/checkBindServiceCard','ScsCarWashOrderController@checkBindServiceCard'); //校验该车牌号是否绑定洗车套餐卡或者其他服务能用的套餐卡            
            Route::any('/washOrderPanel','ScsCarWashOrderController@washOrderPanel'); //洗车单面板


        });

        /**
         * @Author:      lyt
         * @DateTime:  2017-03-25 16:53:30
         * @Description: 洗车订单的退款
         */
        Route::group(array('prefix' => '/rewashorder'),function(){
            Route::any('/returnWashOrderShow', 'ScsReturnWashOrderController@returnWashOrderShow'); //
            Route::any('/createReturnOrder', 'ScsReturnWashOrderController@createReturnOrder'); // 创建  洗车退款单
            Route::any('/cancelReturnOrder', 'ScsReturnWashOrderController@cancelReturnOrder'); // 取消  洗车退款单

            Route::any('/accredit', 'ScsReturnWashOrderController@accredit'); // 洗车单授权人信息
            Route::any('/sendMessage', 'ScsReturnWashOrderController@sendMessage'); // 洗车单授权人发送信息
            



        });


        /**
         * @Author:      lyt
         * @DateTime:  2017-03-25 16:53:30
         * @Description: 洗车订单的退款
         */
        Route::group(array('prefix' => '/reServiceCardOrder'),function(){
            Route::any('/returnServiceCardOrderShow', 'ScsReturnServiceCardController@returnServiceCardOrderShow'); //套餐卡退货单详情
            Route::any('/createReturnOrder', 'ScsReturnServiceCardController@createReturnOrder'); // 创建  套餐卡退货单
            Route::any('/cancelReturnOrder', 'ScsReturnServiceCardController@cancelReturnOrder'); // 取消  套餐卡退货单

            Route::any('/accredit', 'ScsReturnServiceCardController@accredit'); // 套餐卡退货单授权人信息
            Route::any('/sendMessage', 'ScsReturnServiceCardController@sendMessage'); // 套餐卡退货单授权人发送信息
            

        });

        /**
         * @Author:      lyt
         * @DateTime:    2016-01-06 15:07:33
         * @Description: 订单接口
         */

        Route::group(array('prefix' => '/order' ,"before"=>"repeated_submission"),function(){
            Route::any("/onekeyReturnOutOrder","ScsOutOrderController@onekeyReturnOutOrder");//用于订单一键退货
            Route::any('/onekeyOutOrder', 'ScsOutOrderController@onekeyOutOrder'); //用于订单一键 出库
        });

        Route::group(array('prefix' => '/order' ,"before"=>"filit_all_area_filt"),function(){
            Route::any('/addReturnOrderItem', 'ScsReturnOrderController@addReturnOrderItem'); //添加退货单详情
            Route::any('/addReturnProduct', 'ScsReturnOrderController@addReturnProduct'); //添加整包退款
            Route::any("/addWorkHours","ScsOrderChangeController@addWorkHours");//订单添加工时           
        });
        Route::group(array('prefix' => '/reServiceCardOrder' ,"before"=>"return_im_filit"),function(){
            Route::any('/implementReturnOrder', 'ScsReturnServiceCardController@implementReturnOrder'); // 执行套餐卡退货单
        });
        Route::group(array('prefix' => '/order' ,"before"=>"return_im_filit"),function(){
            Route::any('/implementReturnOrder', 'ScsReturnOrderController@implementReturnOrder'); //执行
        });
        Route::group(array('prefix' => '/rewashorder' ,"before"=>"return_im_filit"),function(){
            Route::any('/implementReturnOrder', 'ScsReturnWashOrderController@implementReturnOrder'); // 执行退款单
        });
        Route::group(array('prefix' => '/order'),function(){
            Route::any('/lists', 'ScsOrderController@lists'); //订单列表

            Route::any('/update_driving_license', 'ScsOrderChangeController@update_driving_license'); //更新订单的 车辆信息
            Route::any('/drivingLicenseShopList', 'ScsOrderController@drivingLicenseShopList'); //获取门店扫描的最新信息           

            
            Route::any('/drivingLicenseNewList', 'ScsOrderController@drivingLicenseNewList'); //用于展示扫描驾驶本信息
            Route::any('/carNoImg', 'ScsOrderController@carNoImg'); //用于展示扫描驾驶本信息carNolicenseNew
            Route::any('/licenseNewInfo', 'ScsOrderController@licenseNewInfo'); //用于展示最新的驾驶本信息
            Route::any('/licenseInShop', 'ScsOrderController@licenseInShop'); //显示所属门店的最新的驾驶本信息
            Route::any('/show', 'ScsOrderController@show'); //用于展示订单详情
            Route::any('/get_user_list', 'ScsOrderController@get_user_list'); //获取本门店sc管理员用户列表
            Route::any('/updateEngineer', 'ScsOrderController@updateEngineer'); //修改订单的技师
            Route::any('/updateReceptionInfo', 'ScsOrderController@updateReceptionInfo'); //修改订单的接车人信息
            Route::any('/create', 'ScsOrderController@create'); //用于展示订单详情
            Route::any('/orderStart', 'ScsOrderController@orderStart'); //用于订单的开始服务  也就是前台确认可以 告诉技师开始了
            Route::any('/orderStartBefore', 'ScsOrderController@orderStartBefore'); //用于订单开工前判断是否已有技师
            Route::any('/engineersList', 'ScsOrderController@engineersList'); //技师列表
            Route::any('/modifyAmount', 'ScsOrderController@modifyAmount'); //用于修改订单的支付金额
            Route::any('/cancelModifyAmount', 'ScsOrderController@cancelModifyAmount'); //用于取消价格修改操作
            Route::any('/confirmPayment', 'ScsOrderController@confirmPayment'); //确认结算
            Route::any('/confirmBefore', 'ScsOrderController@confirmBefore'); //结算前的状态判断
            Route::any('/createUser', 'ScsOrderController@createUser'); //结算前给特殊用户创建真是信息
            Route::any('/updateUser', 'ScsOrderController@updateUser'); //创建订单修改用户信息发短信
             
            Route::any('/returnStatus', 'ScsOrderController@returnStatus'); //用于返回订单状态
            Route::any('/stopOrder', 'ScsOrderController@stopOrder'); //用于返回订单状态
            Route::any('/stopOrderBefore', 'ScsOrderController@stopOrderBefore'); //用于返回订单状态
            Route::any('/cancelOrder', 'ScsOrderController@cancelOrder'); //用于返回订单状态
            // Route::any('/maintenanceRecords', 'ScsOrderController@maintenanceRecords'); //用于返回订单车牌号的历史维修记录 测试删除 该路由 发现已经废弃  17/8/1 lyt
            Route::any('/maintenanceRecord', 'ScsOrderController@maintenanceRecord'); //用于返回订单车牌号的历史维修记录

            Route::any('/checkRecords', 'ScsOrderController@checkRecords'); //用于返回订单检测记录 3月2号上线废弃
            Route::any('/checkRecorDetection', 'ScsOrderController@checkRecorDetection'); //用于返回订单检测记录 新版本的
            Route::any('/saveDetectionAmount', 'ScsOrderController@saveDetectionAmount'); //用于预估异常项目价格 

            Route::any('/checkRecorDetectionNc', 'ScsOrderController@checkRecorDetectionNc'); //用于返回订单检测记录 米有权限验证的 用于打印的PDF的

            Route::any('/orderDate', 'ScsOrderController@orderDate'); //用于修改订单的预计完成时间
            Route::any('/sendTextMessage', 'ScsOrderController@sendTextMessage'); //订单撤回、终止订单时 发送短信

            Route::any("/update_order_car_model","ScsOrderChangeController@update_order_car_model");//修改订单车型
            Route::any("/update_order_user_info","ScsOrderChangeController@update_order_user_info");//修改订单客户信息

            Route::any("/addProduct","ScsOrderChangeController@addProduct");//用于订单添加产品信息
            Route::any("/addProducts","ScsOrderChangeController@addProducts");//用于订单添加产品信息（多个）
            Route::any("/addProductsToNewOrder","ScsOrderChangeController@addProductsToNewOrder");//用于订单添加产品信息（多个）到新订单

            Route::any("/getProductPackages","ScsOrderChangeController@getProductPackages");//用于订单获取产品包
            // Route::any("/maintenanceOutOrders","ScsOrderController@maintenanceOutOrders");//订单导出备货单   测试删除 该路由 发现已经废弃  17/8/1 lyt
            Route::any("/maintenanceOutOrder","ScsOrderController@maintenanceOutOrder");//订单导出备货单(单品)
            Route::any("/delProduct","ScsOrderChangeController@delProduct");//用于产品包的删除
            Route::any("/delProductItem","ScsOrderChangeController@delProductItem");//用于非标产品包中产品的删除
            // Route::any("/addBaseItem","ScsOrderChangeController@addBaseItem");//用于 添加 基本的非标准 产品  应该是废弃接口 注释掉实验
            Route::any("/changeBaseProductItemNum","ScsOrderChangeController@changeBaseProductItemNum");//用于修改基础产品包的 耗材数量
            Route::any("/changeBaseProductItem","ScsOrderChangeController@changeBaseProductItem");//用于修改基础产品包的 耗材型号
            Route::any("/changeBaseProductItemBefore","ScsOrderChangeController@changeBaseProductItemBefore");//用于修改基础产品包的 耗材型号的前置判断
            Route::any("/changeNoAdapterBaseProductItem","ScsOrderChangeController@changeNoAdapterBaseProductItem");//用于修改无适配耗材基础产品包的 耗材型号
            // Route::any("/changeNonProductItemNum","ScsOrderChangeController@changeNonProductItemNum");//用于修改 非标产品的 耗材数量 暂时清除 该部分代码 f废弃代码 关闭入口
            // Route::any("/verification","ScsOrderChangeController@verification");//订单挂账核销列表  暂时清除 该部分代码 这部分 由应收收回代替 暂时 关闭入口
            // Route::any("/verify","ScsOrderChangeController@verify");//订单挂账核销
            // Route::any("/cancelVerify","ScsOrderChangeController@cancelVerify");//订单挂账取消核销
            // Route::any("/verifyMessage","ScsOrderChangeController@verifyMessage");//核销验证信息
            // Route::any("/verifyBefore","ScsOrderChangeController@verifyBefore");//核销前判断
            Route::any("/recheck","ScsOrderChangeController@recheck");//复检
            Route::any("/recheckBefore","ScsOrderChangeController@recheckBefore");//复检前判断
            Route::any("/sendMsgs","ScsOrderChangeController@sendMessage");//复检发送短信
            Route::any("/engineerList","ScsOrderChangeController@engineerList");//技师主管列表
            


            Route::any("/showOutOrder","ScsOutOrderController@showOutOrder");//用于展示订单的备货记录
            Route::any("/showReturnOrder","ScsOutOrderController@showReturnOrder");//用于展示订单的退货记录
            Route::any("/updateOutStatus","ScsOutOrderController@updateOutStatus");//用于修改备货记录状态
            Route::any("/returnOutOrder","ScsOutOrderController@returnOutOrder");//用于订单退货
            
            Route::any("/orderInventory","ScsOutOrderController@orderInventory");//按订单备货信息清单
            Route::any("/supplyInventory","ScsOutOrderController@supplyInventory");//按耗材备货信息清单

            Route::any("/addService","ScsOrderChangeController@addService");//订单添加非标服务包
            Route::any("/addPart","ScsOrderChangeController@addPart");//订单非标服务包添加配件            
            Route::any("/changeNonStandardItem","ScsOrderChangeController@changeNonStandardItem");//用于更换服务包的耗材型号
            Route::any("/changeNonStandardItemBefore","ScsOrderChangeController@changeNonStandardItemBefore");//用于更换服务包的耗材型号 前置判断
            Route::any("/updateWorkHours","ScsOrderChangeController@updateWorkHours");//订单修改工时
            Route::any("/changeNonStandardItemNum","ScsOrderChangeController@changeNonStandardItemNum");//修改配件数量
            Route::any("/partList","ScsOrderChangeController@partList");//订单添加配件列表(搜索条件为品类与关键字)
            Route::any("/supply_search","ScsOrderChangeController@supply_search");//用于订单 添加配件更换配件时候搜索 替换上面的接口
            // Route::any("/partsList","ScsOrderChangeController@partsList");//订单添加配件列表(搜索条件为品牌)
            Route::any("/serviceList","ScsOrderChangeController@serviceList");//非标服务包列表

            Route::any("/discount","ScsOrderChangeController@discount");//非标包配件工时打折
            Route::any("/nonStandardDiscount","ScsOrderChangeController@nonStandardDiscount");//标准包配件工时打折
            Route::any("/discounts","ScsOrderChangeController@discounts");//批量配件工时打折
            
            Route::any("/coupons","ScsOrderController@coupons");//订单优惠券信息
            Route::any("/verification_coupons","ScsOrderController@verification_coupons");//订单优惠券信息
            
            Route::any("/apply_discount","ScsOrderController@apply_discount");//申请折扣
            Route::any("/discountHistory","ScsOrderController@discountHistory");//申请折扣历史
            Route::any("/order_paydesc","ScsOrderController@order_paydesc");//用户订单的支付用户信息

            Route::any("/order_pay","ScsOrderController@order_pay");//用户订单的支付
            Route::any("/end_order","ScsOrderController@end_order");//订单的结束
            Route::any("/cancel_order_pay","ScsOrderController@cancel_order_pay");//取消订单的支付记录

            Route::any("/return_serverend","ScsOrderController@return_serverend");//订单状态回退
            Route::any("/return_confirm","ScsOrderController@return_confirm");//订单状态撤回、
            Route::any("/return_confirmBefore","ScsOrderController@return_confirmBefore");//订单状态撤回

            

            //订单代付
            Route::any("/isCanOtherPay","ScsOrderPayotherController@isCanOtherPay");//验证能付代付
            Route::any("/checkCarNoPay","ScsOrderPayotherController@checkCarNoPay");//验证车辆信息 获取代付信息
            Route::any("/otherpaysendMessage","ScsOrderPayotherController@otherpaysendMessage");//代付发送验证码
            // Route::any("/otherPayBefore","ScsOrderPayotherController@otherPayBefore");//确认代付 验证
            Route::any("/otherPay","ScsOrderPayotherController@otherPay");//确认代付
            Route::any("/cancel_payuser","ScsOrderPayotherController@cancel_payuser");//取消代付用户信息

            

            //用户标签
            Route::any("/labelList","ScsOrderController@labelList");//标签列表
            Route::any("/save_user_label","ScsOrderController@save_user_label");//保存用户标签
            Route::any("/user_label","ScsOrderController@user_label");//用户标签
            
            

            //企业套餐
            Route::any("/addSetmeal","ScsEnterpriseController@addSetmeal");//用于订单添加企业套餐
            Route::any("/esList","ScsEnterpriseController@esList");//企业套餐列表
            Route::any("/deleteProduct","ScsEnterpriseController@delProduct");//删除企业套餐
            Route::any('/changeEsItemNum', 'ScsEnterpriseController@changeEsItemNum'); //用于 更换基础包的耗材数量
            Route::any('/changeEsProductItem', 'ScsEnterpriseController@changeEsProductItem'); //用于 更换基础包的耗材
            Route::any('/changeEsProductItemBefore', 'ScsEnterpriseController@changeEsProductItemBefore'); //用于 更换基础包的耗材前置判断 
            Route::any('/changeNoAdapterEsProductItem', 'ScsEnterpriseController@changeNoAdapterEsProductItem'); //用于 更换基础包的耗材


            //退货单
            Route::any("/returnOrderList","ScsReturnOrderController@returnOrderList");//退货单列表
            Route::any("/returnOrderShow","ScsReturnOrderController@returnOrderShow");//退货单详情
            Route::any("/createReturnOrder","ScsReturnOrderController@createReturnOrder");//创建退货单
            Route::any("/returnParts","ScsReturnOrderController@returnParts");//退配件列表
            Route::any('/allReturn', 'ScsReturnOrderController@allReturn'); //整单退货的接口 
                        
            Route::any('/cancelReturnOrderItem', 'ScsReturnOrderController@cancelReturnOrderItem'); //取消退货单项
            Route::any('/cancelReturnOrder', 'ScsReturnOrderController@cancelReturnOrder'); //取消退货
            Route::any('/accredit', 'ScsReturnOrderController@accredit'); //授权信息
            
            Route::any('/sendMessage', 'ScsReturnOrderController@sendMessage'); //退货执行时发短信
            Route::any('/send', 'ScsOrderController@send'); //创建订单修改用户信息发短信
            Route::any('/sendMsg', 'ScsOrderController@sendMsg'); //申请折扣发短信
            
            //订单计算测试方法
            Route::any('/test','ScsOrderController@test'); //订单计算测试
                        
            /**
             * @Author:      lyt
             * @DateTime:    2016-05-21 10:20:40
             * @Description: 零售单的相关
             */
            Route::any('/lscreate', 'ScsLSOrderController@create'); //用于零售单的显示
            Route::any('/update_lsorder_user_info', 'ScsLSOrderController@update_order_user_info'); //用于 更新零售单的个人信息
            Route::any('/update_lsorder_car_model', 'ScsLSOrderController@update_order_car_model'); //用于 更新零售单的个人信息
            Route::any('/changelsBaseProductItem', 'ScsLSOrderController@changeBaseProductItem'); //用于 更换基础包的耗材
            Route::any('/changelsNonStandardItem', 'ScsLSOrderController@changeNonStandardItem'); //用于更换非标服务包的耗材型号
            Route::any('/addlsPart', 'ScsLSOrderController@addPart'); //用于添加 配件
            Route::any('/createRelations', 'ScsLSOrderController@create_relations'); //用于创建关联订单
            
            
            /**
             * @Author:      zwh
             * @DateTime:    2016-11-28 14:38:55
             * @Description: 优惠券相关
             */
            Route::any('/changeCouponStatus', 'ScsOrderChangeController@changeCouponStatus'); //用于修改优惠券使用状态
            Route::any('/deleteCoupon', 'ScsOrderChangeController@deleteCoupon'); //用于删除优惠券信息
            
            
            /**
             * @Author:      zwh
             * @DateTime:    2017-4-7 14:00:25
             * @Description: 订单活动包相关
             */
            Route::any("/product_activity_list","ScsProductActivityController@product_activity_list");//用于订单添加活动包
            Route::any("/addProductActivity","ScsProductActivityController@addProductActivity");//活动包列表
            Route::any("/deleteProductActivity","ScsProductActivityController@deleteProductActivity");//删除活动包
            Route::any('/changeAcItemNum', 'ScsProductActivityController@changeAcItemNum'); //用于 更换活动包的耗材数量
            Route::any('/changeAcProductItem', 'ScsProductActivityController@changeAcProductItem'); //用于 更换活动包的耗材
            Route::any('/changeNoAdapterAcProductItem', 'ScsProductActivityController@changeNoAdapterAcProductItem'); //用于 更换无适配的耗材
            Route::any('/changeAcProductItemBefore', 'ScsProductActivityController@changeAcProductItemBefore'); //用于 更换基础包的耗材前置判断

            Route::any("/member_product_activity_list","ScsProductActivityController@member_product_activity_list");//用于订单会员包列表


            /**
             * @Author:      lyt
             * @DateTime:  2017-08-01 17:23:42
             * @Description: 订单使用套餐卡相关
             */
            Route::any('/serviceCardList', 'ScsOrderServiceCardController@serviceCardList'); //用于查看用户套餐卡服务数量
            Route::any('/addServiceCard', 'ScsOrderServiceCardController@addServiceCard'); //用户添加套餐卡的产品
            Route::any('/changeServiceCardNum', 'ScsOrderServiceCardController@changeServiceCardNum'); //更换套餐卡产品耗材的数量和价格
            Route::any('/changeServiceCardItem', 'ScsOrderServiceCardController@changeServiceCardItem'); //更换套餐卡产品耗材
            Route::any('/changeServiceCardItemBefore', 'ScsOrderServiceCardController@changeServiceCardItemBefore'); //更换套餐卡耗材前判断
            Route::any('/changeNoAdapterServiceCardItem', 'ScsOrderServiceCardController@changeNoAdapterServiceCardItem'); //更换套餐卡不适配耗材
            
            
        });
        
        /**
         * @Author:      zwh
         * @DateTime:    2016-11-11 15:49:57
         * @Description: 保险相关接口
         */
        Route::group(array('prefix' => '/insurance'),function(){
            Route::any('/show', 'ScsInsuranceController@show'); //保险单详情
            Route::any('/create', 'ScsInsuranceController@create'); //创建保险单
            Route::any('/update', 'ScsInsuranceController@update'); //更新保险单信息
            Route::any('/lists', 'ScsInsuranceController@lists'); //保险单列表
            Route::any('/options', 'ScsInsuranceController@options'); //车辆种类、承保险种等列表选项
            Route::any('/selfCheck', 'ScsInsuranceController@selfCheck'); //自检
            Route::any('/deleteInsurance', 'ScsInsuranceController@deleteInsurance'); //删除保险单 验证用户信息

            Route::any('/recharge', 'ScsInsuranceController@recharge'); //保险单充值
        });
            
        /**
         * @Author:      zwh
         * @DateTime:    2016-10-24 14:16:02
         * @Description: 镜像单接口
         */
        Route::group(array('prefix' => '/mirrorOrder'),function(){
            Route::any('/lists', 'ScsMirrorOrderController@lists'); //镜像单列表
            Route::any('/create', 'ScsMirrorOrderController@create'); //创建镜像单
            Route::any('/show', 'ScsMirrorOrderController@show'); //虚拟单详情
            Route::any('/addProduct', 'ScsMirrorOrderController@addProduct'); //添加产品包
            Route::any('/addService', 'ScsMirrorOrderController@addService'); //添加服务
            Route::any('/addSetmeal', 'ScsMirrorOrderController@addSetmeal'); //添加企业包
            Route::any('/addProductActivity', 'ScsMirrorOrderController@addProductActivity'); //添加活动包
            Route::any('/delProduct', 'ScsMirrorOrderController@delProduct'); //删除产品包
            Route::any('/delProductItem', 'ScsMirrorOrderController@delProductItem'); //删除非标包中配件
            Route::any('/changeBaseProductItemNum', 'ScsMirrorOrderController@changeBaseProductItemNum'); //虚拟单修改标准包配件数量
            Route::any('/changeBaseProductItem', 'ScsMirrorOrderController@changeBaseProductItem'); //虚拟单修改标准包配件
            Route::any("/changeNoAdapterBaseProductItem","ScsMirrorOrderController@changeNoAdapterBaseProductItem");//用于修改无适配耗材基础产品包的 耗材型号
            Route::any('/changeNonProductItemNum', 'ScsMirrorOrderController@changeNonProductItemNum'); //虚拟单修改非标包配件数量
            Route::any('/changeNonStandardItem', 'ScsMirrorOrderController@changeNonStandardItem'); //虚拟单修改非标配件
            Route::any('/addPart', 'ScsMirrorOrderController@addPart'); //虚拟单非标包添加配件
            Route::any('/addWorkHours', 'ScsMirrorOrderController@addWorkHours'); //虚拟单非标包添加工时
            Route::any('/updateWorkHours', 'ScsMirrorOrderController@updateWorkHours'); //虚拟单非标包工时修改
            Route::any('/changeEsItemNum', 'ScsMirrorOrderController@changeEsItemNum'); //虚拟单修改企业包配件数量
            Route::any('/changeEsProductItem', 'ScsMirrorOrderController@changeEsProductItem'); //虚拟单修改企业包配件
            Route::any('/changeNoAdapterEsProductItem', 'ScsMirrorOrderController@changeNoAdapterEsProductItem'); //用于 更换基础包的耗材
            Route::any('/supply_search', 'ScsMirrorOrderController@supply_search'); //配件列表
            Route::any('/update_order_car_info', 'ScsMirrorOrderController@update_order_car_info'); //修改订单用户信息及车辆信息
            Route::any('/update_order_pay_time', 'ScsMirrorOrderController@update_order_pay_time'); //修改虚拟单结算时间
            Route::any('/update_order_meet_time', 'ScsMirrorOrderController@update_order_meet_time'); //修改虚拟单结算时间
            Route::any('/update_order_user_info', 'ScsMirrorOrderController@update_order_user_info'); //修改送修人信息
            Route::any('/discount', 'ScsMirrorOrderController@discount'); //标准配件工时打折
            Route::any('/nonStandardDiscount', 'ScsMirrorOrderController@nonStandardDiscount'); //非标配件工时打折
            Route::any('/discounts', 'ScsMirrorOrderController@discounts'); //批量折扣
            Route::any('/update_order_amount', 'ScsMirrorOrderController@update_order_amount'); //修改虚拟单金额
            Route::any('/changeAcItemNum', 'ScsMirrorOrderController@changeAcItemNum'); //虚拟单修改企业包配件数量
            Route::any('/changeAcProductItem', 'ScsMirrorOrderController@changeAcProductItem'); //虚拟单修改企业包配件
            Route::any('/changeNoAdapterAcProductItem', 'ScsMirrorOrderController@changeNoAdapterAcProductItem'); //用于 更换基础包的耗材
        });

        /**
         * @Author:      lyt
         * @DateTime:    2016-01-13 10:23:47
         * @Description: 车辆相关接口
         */
        Route::group(array('prefix' => '/car'),function(){
            Route::any('/license_get', 'ScsDrivingLicenseController@get'); //获取行驶证信息
            Route::any('/license_update', 'ScsDrivingLicenseController@update'); //获取行驶证信息
            Route::any('/createDrivingLicenseNew', 'ScsDrivingLicenseController@createDrivingLicenseNew'); //获取行驶证信息
            Route::any('/detail', 'ScsCarController@detail'); //车辆列表
            Route::any('/store', 'ScsCarController@store'); //车辆列表
            Route::any('/lists', 'ScsCarController@lists'); //车辆列表
            Route::any('/brands', 'ScsCarController@brands'); //用于获取车品牌信息
            Route::any('/series', 'ScsCarController@series'); //用于获取车系信息
            Route::any('/years', 'ScsCarController@years'); //用于获取车辆年款信息
            Route::any('/models', 'ScsCarController@models'); //用于获取车辆车型信息
            Route::any('/car_model_info', 'ScsCarController@car_model_info'); //根据车型id获取车辆车型信息

            Route::any('/carMainManual', 'ScsCarController@carMainManual'); //用于获取指定车型 指定里程的 推荐保养项目

        });

        /**
         * @Author:      zwh
         * @DateTime:    2016-1-19 11:27:26
         * @Description: 服务项目接口
         */
        Route::group(array('prefix' => '/service'),function(){
            // Route::any('/parts_list', 'ScsServiceController@parts_list'); //用于展示服务项目列表  废弃作废
            Route::any('/service_list', 'ScsServiceController@service_list'); //用于展示配件分类列表
            // Route::any('/supply_list', 'ScsServiceController@supply_list'); //用于展示配件耗材列表(耗材分类)  废弃作废
            // Route::any('/supply_lists', 'ScsServiceController@supply_lists'); //用于展示配件耗材列表(耗材id)  废弃作废

            Route::any('/shopList', 'ScsServiceController@shopList'); //用于展示 门店信息
            Route::any('/department', 'ScsServiceController@department'); //用于展示 部门信息
            Route::any('/supplierList', 'ScsServiceController@supplierList'); //用于展示 门店的供应商列表
            Route::any('/supplierDetail', 'ScsServiceController@supplierDetail'); //用于展示供应商详情
            Route::any('/payTaxFreight', 'ScsServiceController@payTaxFreight'); //用于展示 供应商针对当前门店的结算方式、物流配送
            // Route::any('/supplyServices', 'ScsServiceController@supplyServices'); //用于展示 耗材的 品牌品类   x新结构不用废弃
            // Route::any('/statclassif', 'ScsServiceController@statisticalClassification'); //用于获取统计分类的接口  分期废弃接口暂时注释掉
            Route::any('/statclassifs', 'ScsServiceController@statisticalClassifications'); //用于获取统计分类的接口
            Route::any('/st', 'ScsServiceController@st'); //用于获取统计分类的接口
            Route::any('/initials', 'ScsServiceController@initials'); //用于翻译首字母

        });


        /**
         * @Author:      lyt
         * @DateTime:    2016-02-18 10:33:51
         * @Description: 用于库存相关的 接口
         */
        Route::group(array('prefix' => '/stock'),function(){
            Route::any('/lists', 'ScsDatabaseController@lists'); //仓库的列表
            Route::any('/inventoryDetai', 'ScsDatabaseController@inventoryDetai'); //库存的查询
            Route::any('/inventoryDetaiNew', 'ScsDatabaseController@inventoryDetaiNew'); //配件查询

            Route::any('/unsalable_inquiry_detail', 'ScsDatabaseController@unsalable_inquiry_detail'); //滞销查询
            Route::any('/unsalable_inquiry_total', 'ScsDatabaseController@unsalable_inquiry_total'); //滞销查询库存（汇总）
            Route::any('/stock_reference', 'ScsDatabaseController@stock_reference'); //滞销查询库存（汇总）

            Route::any('/supplyShow', 'ScsDatabaseController@supplyShow'); // 耗材库存查询
            Route::any('/supplySale', 'ScsDatabaseController@supplySale'); // 耗材的最近销售记录
            Route::any('/supplyInventory', 'ScsDatabaseController@supplyInventory'); // 耗材的直营店库存记录
            Route::any('/changeLocaStorage', 'ScsDatabaseStorageController@changeLocaStorage'); // 更改耗材入库记录ID
            Route::any('/changeLocaStorageMore', 'ScsDatabaseStorageController@changeLocaStorageMore'); // 批量更改耗材入库记录ID
            

            Route::any('/getMsiList', 'ScsDatabaseController@getMsiList'); // 指定耗材查询 能出库的批次列表

            Route::any('/storageList', 'ScsDatabaseController@storageList'); //入库单列表
            Route::any('/storage', 'ScsDatabaseController@storage'); //入库单详情
            Route::any('/getSupply', 'ScsDatabaseController@getSupply'); //入库耗材 查询
            Route::any('/getSupplyReturn', 'ScsDatabaseController@getSupplyReturn'); //获取 领用未退库完 的 领用出库的 耗材批次
            Route::any('/getShopOrderReturn', 'ScsDatabaseController@getShopOrderReturn'); //获取待处理的 订单退库请求


            Route::any('/storage/create', 'ScsDatabaseStorageController@createStorage'); //批量临时入库
            Route::any('/storage/createReturn', 'ScsDatabaseStorageController@createStorageReturn'); //领用归还 入库 接口
            Route::any('/storage/deleteStorage', 'ScsDatabaseStorageController@deleteStorage'); //批量临时入库 s删除
            Route::any('/storage/implementStorage', 'ScsDatabaseStorageController@implementStorage'); //执行 临时入库
            Route::any('/storage/addStorageItem', 'ScsDatabaseStorageController@addStorageItem'); //用于添加批量临时的耗材
            Route::any('/storage/addStorageReturnItem', 'ScsDatabaseStorageController@addStorageReturnItem'); //用于 添加领用退库的 耗材批次
            Route::any('/storage/implementStorageReturn', 'ScsDatabaseStorageController@implementStorageReturn'); //用于执行 领用退库的入库单
            Route::any('/storage/addBefore', 'ScsDatabaseStorageController@addStorageItemBefore'); //用于添加批量临时的耗材前判断
            Route::any('/storage/implementStorageBefore', 'ScsDatabaseStorageController@implementStorageBefore'); //执行 临时入库
            
            Route::any('/storage/deleteStorageItem', 'ScsDatabaseStorageController@deleteStorageItem'); //用于删除批量临时的耗材
            Route::any('/storage/implementOrderReturn', 'ScsDatabaseStorageController@implementOrderReturn'); //用于执行 退库申请的接口
            Route::any('/storage/refuseOrderReturn', 'ScsDatabaseStorageController@refuseOrderReturn'); //用于拒绝 退库申请的接口
            Route::any('/storage/deleteStorageItemBefore', 'ScsDatabaseStorageController@deleteStorageItemBefore'); //用于删除批量临时的耗材

            Route::any('/outList', 'ScsDatabaseController@outList'); //出库单列表
            Route::any('/out', 'ScsDatabaseController@out'); //出库单详情
            Route::any('/getSupplyStorage', 'ScsDatabaseController@getSupplyStorage'); //获取能出库的耗材批次
            Route::any('/getShopOrderOut', 'ScsDatabaseController@getShopOrderOut'); //获取需要处理的待出库 订单耗材信息


            Route::any('/out/create', 'ScsDatabaseOutController@createOut'); //用于 生成出库的
            Route::any('/out/deleteOut', 'ScsDatabaseOutController@deleteOut'); //用于删除 出库单的
            Route::any('/out/implementOut', 'ScsDatabaseOutController@implementOut'); //用于执行 出库单的
            Route::any('/out/addOutItem', 'ScsDatabaseOutController@addOutItem'); //用于添加出库单的信息
            Route::any('/out/deleteOutItem', 'ScsDatabaseOutController@deleteOutItem'); //用于删除 出库的耗材批次记录
            Route::any('/out/implementOutOrder', 'ScsDatabaseOutController@implementOutOrder'); //用于执行 选定订单出库记录的 申请生成出库单
            Route::any('/out/refuseOutOrder', 'ScsDatabaseOutController@refuseOutOrder'); //用于拒绝 订单出库申请的接口




        });

        /**
         * @Author:      lyt
         * @DateTime:    2016-05-03 17:52:11
         * @Description: 库存盘点
         */
        Route::group(array('prefix' => '/stockInventory'),function(){
            Route::any('/lists', 'ScsDataInventoryController@lists'); //盘点的记录
            Route::any('/create', 'ScsDataInventoryController@create'); //盘点的记录 创建

            Route::any('/getSupplyList', 'ScsDataInventoryController@getSupplyList'); //盘点记录的 耗材盘点表 详情和查找盘点耗材
            Route::any('/getStorageChcek', 'ScsDataInventoryController@getStorageChcek'); //盘点记录的 耗材批次盘点记录

            Route::any('/addSupply', 'ScsDataInventoryController@addSupply'); //添加盘点表的记录
            Route::any('/editSupply', 'ScsDataInventoryController@editSupply'); //修改盘点表的记录
            Route::any('/comfimSupply', 'ScsDataInventoryController@comfimSupply'); //确认盘点记录

            Route::any('/getChcekSupply', 'ScsDataInventoryController@getChcekSupply'); //待处理的盘点表
            Route::any('/getStorage', 'ScsDataInventoryController@getStorage'); //根据盘点表获取 该盘点表的耗材的入库批次

            Route::any('/addStorageChcek', 'ScsDataInventoryController@addStorageChcek'); //盘点耗材的批次记录
            Route::any('/deleteStorageChcek', 'ScsDataInventoryController@deleteStorageChcek'); //库存盘点记录的 耗材批次盘点记录

            Route::any('/implementInventory', 'ScsDataInventoryController@implementInventory'); //执行一个库存盘点记录
            Route::any('/deleteInventory', 'ScsDataInventoryController@deleteInventory'); //删除一个库存盘点记录
            Route::any('/inventoryDetail', 'ScsDataInventoryController@inventoryDetail'); //盘点记录详情
            
            Route::any('/editInventoryCondition', 'ScsInventoryConditionController@edit'); //盘点包编辑
            Route::any('/inventoryConditionLists', 'ScsInventoryConditionController@lists'); //盘点包列表
            Route::any('/classification', 'ScsInventoryConditionController@classification'); //盘点包分类列表
            Route::any('/createInventoryCondition', 'ScsInventoryConditionController@create'); //盘点包创建
            Route::any('/addItem', 'ScsInventoryConditionController@addItem'); //盘点包项目添加
            Route::any('/deleteItem', 'ScsInventoryConditionController@deleteItem'); //删除盘点包项目
            Route::any('/deleteInventoryCondition', 'ScsInventoryConditionController@delete'); //删除盘点包
            Route::any('/verification', 'ScsInventoryConditionController@verification'); //验证维度
            Route::any('/st', 'ScsDataInventoryController@st'); //根据盘点包获取新的三级分类
            Route::any('/update', 'ScsInventoryConditionController@update'); //盘点包项目添加
            Route::any('/editBefore', 'ScsInventoryConditionController@editBefore'); //盘点包编辑前判断
            
        });




        /**
         * @Author:      lyt
         * @DateTime:    2016-02-22 11:28:34
         * @Description: 用于门店的各种设置  维护
         */
        Route::group(array('prefix' => '/shop'),function(){
            Route::any('/supplybrand', 'ScsSupplyController@supply_brand'); //门店耗材的品牌 用于添加耗材使用
            Route::any('/supplyseries', 'ScsSupplyController@supply_series'); //门店耗材的系列 用于添加耗材使用
            Route::any('/supplyunit', 'ScsSupplyController@supply_unit'); //门店耗材的单位 用于添加耗材使用
            Route::any('/createsupply', 'ScsSupplyController@createsupply');//门店创建耗材
            Route::any('/supplydetail', 'ScsSupplyController@supplydetail'); //耗材详情       
            Route::any('/updatesupply', 'ScsSupplyController@updatesupply'); //用与修改门店的耗材
            
            // Route::any('/createsupply', 'ScsShopController@createsupply'); //用与添加门店的耗材 接口不变 内容更换位置更换
            Route::any('/shopsupply', 'ScsSupplyController@shopsupply'); //用于门店的耗材列表 
            // Route::any('/updatesupply', 'ScsShopController@updatesupply'); //用与修改门店的耗材  接口不变 内容更换位置更换
            // Route::any('/supplydetail', 'ScsShopController@supplydetail'); //耗材详情       接口不变 内容更换位置更换
            Route::any('/updatesupplyLocation', 'ScsShopController@updatesupplyLocation'); //维护耗材 
            Route::any('/scfDetail', 'ScsShopController@scfDetail'); //三级分类详情


            Route::any('/createSupplier', 'ScsShopController@createSupplier'); //添家门店的供应商
            Route::any('/updateSupplier', 'ScsShopController@updateSupplier'); //修改门店供应商

            Route::any('/supply_storage_search', 'ScsShopController@supply_storage_search'); //入库关系转换            


            Route::any('/warehouseWarn', 'ScsWarehouseWarnController@lists'); //用于查看门店的库存预警设置  
            Route::any('/getSupply', 'ScsWarehouseWarnController@getSupply'); //用于查看门店的 用于耗材的
            Route::any('/addSupply', 'ScsWarehouseWarnController@addSupply'); //用于添加门店的耗材预警配置
            Route::any('/editSupplyWarn', 'ScsWarehouseWarnController@editSupplyWarn'); //用于修改的耗材预警配置
            Route::any('/warnSupplyLists', 'ScsWarehouseWarnController@warnSupplyLists'); //达到预警值的 耗材列表 //18 s1之后废弃

            Route::any('/minWarnSupplyLists', 'ScsWarehouseWarnController@minWarnSupplyLists'); //到达预警下限的耗材列表
            Route::any('/maxWarnSupplyLists', 'ScsWarehouseWarnController@maxWarnSupplyLists'); //到达预警上限的耗材列表
            
            Route::any('/inquire', 'ScsShopController@inquire'); //询价包信息
            Route::any('/inresult', 'ScsShopController@inresult'); //询价结果
            Route::any('/supply_search', 'ScsShopController@supply_search'); //询价结果
            
            Route::any('/shop_manager', 'ScsShopController@shop_manager'); //门店店长信息
            Route::any('/shop_pos', 'ScsShopController@shop_pos'); //门店pad信息
            Route::any('/paytype_search', 'ScsShopController@paytype_search'); //门店支付方式
            Route::any('/createSMY', 'ScsShopController@createSMY'); //门店上传 萨摩亚数据
            
        });


        Route::group(array('prefix' => '/purchase'),function(){            
            Route::any('/warn_create', 'ScsPurchaseController@warn_create'); //门店预警生成 采购单
            Route::any('/lists', 'ScsPurchaseController@lists'); //采购单列表
            Route::any('/purchaseorder_create', 'ScsPurchaseController@purchaseorder_create'); //采购单创建   
            Route::any('/purchaseorder_cancel', 'ScsPurchaseController@purchaseorder_cancel'); //采购单取消
            Route::any('/change_hope_at', 'ScsPurchaseController@change_hope_at'); //采购单预期时间更改 
            

            Route::any('/requirements_list', 'ScsPurchaseController@requirements_list'); //采购单需求列表
            Route::any('/product_offer', 'ScsPurchaseController@product_offer'); //采购单采购项 报价
            Route::any('/offer_save', 'ScsPurchaseController@offer_save'); //采购单采购项 报价保存
            Route::any('/supply_search', 'ScsPurchaseController@supply_search'); //采购单采购项耗材查询
            Route::any('/purchaseorder_addsupply', 'ScsPurchaseController@purchaseorder_addsupply'); //采购单添加采购项
            Route::any('/purchaseorder_detail', 'ScsPurchaseController@purchaseorder_detail'); //采购单详情
            Route::any('/purchaseorder_submit', 'ScsPurchaseController@purchaseorder_submit'); //采购单提交采购单审核
            Route::any('/purchaseorder_resubmit', 'ScsPurchaseController@purchaseorder_resubmit'); //采购单撤销审核针对审核中的 集采
            Route::any('/purchaseorder_delsupply', 'ScsPurchaseController@purchaseorder_delsupply'); //采购单删除添加采购项

            Route::any('/plan_product_list', 'ScsPurchaseController@plan_product_list'); //采购单订货明细
            Route::any('/receive_product_list', 'ScsPurchaseController@receive_product_list'); //采购单收货明细
            Route::any('/flows_list', 'ScsPurchaseController@flows_list'); //采购单状态流转
            
            Route::any('/query_price', 'ScsPurchaseController@query_price');            //采购询价 查询商品报价
            Route::any('/query_price_new', 'ScsPurchaseController@query_price_new');    //采购询价 查询商品报价
            Route::any('/queryPriceByVin', 'ScsPurchaseController@queryPriceByVin');        //采购询价 通过车架号Vin询价
            Route::any('/queryPriceByModel', 'ScsPurchaseController@queryPriceByModel');    //采购询价 通过车型询价
            Route::any('/queryPriceByName', 'ScsPurchaseController@queryPriceByName');      //采购询价 通过商品名称询价
            Route::any('/supplyBrandList', 'ScsPurchaseController@supplyBrandList');    //采购询价 获取品牌列表
            Route::any('/supplySeries', 'ScsPurchaseController@supplySeries');          //采购询价 根据耗材的品牌获取耗材的系列
            Route::any('/query_level', 'ScsPurchaseController@query_level');            //获取三级分类 [同时支持模糊查询]  三级分类独立分开
            Route::any('/addShoppingCar', 'ScsPurchaseController@addShoppingCar');      //采购询价 加入购物车
            Route::any('/shoppingCarList', 'ScsPurchaseController@shoppingCarList');     //采购询价 购物车列表
            Route::any('/editShoppingCar', 'ScsPurchaseController@editShoppingCar');     //采购询价 购物车 编辑
            Route::any('/checkPrice', 'ScsPurchaseController@checkPrice');               //采购询价 校验全部供应商报价
            Route::any('/editReceivesAddress', 'ScsPurchaseController@editReceivesAddress');     //采购询价 收货人信息 编辑
            
        });


        Route::group(array('prefix' => '/planorder'),function(){            
            Route::any('/purchase_create', 'ScsPlanOrderController@purchase_create'); //采购单生成订货单
            Route::any('/addPlanOrder', 'ScsPlanOrderController@addPlanOrder');         //添加订货单
            

        });

        Route::group(array('prefix' => '/pmsreceiveorder'),function(){            
            Route::any('/lists', 'ScsPmsReceiveOrderController@lists'); //收货单列表
            Route::any('/receive_detail', 'ScsPmsReceiveOrderController@receive_detail'); //收货单详情
            Route::any('/supplier_last_info', 'ScsPmsReceiveOrderController@supplierLastInfo'); //供应商相对于收货单是否更新了
            Route::any('/receive_list', 'ScsPmsReceiveOrderController@receive_list'); //收货单收货明细
            Route::any('/storage_list', 'ScsPmsReceiveOrderController@storage_list'); //收货单入库列表
            Route::any('/receive_product_list', 'ScsPmsReceiveOrderController@receive_product_list'); //收货单收货明细
        });

        Route::group(array('prefix' => '/pmsreceiveorder',"before"=>"pmssce_submission"),function(){            
            Route::any('/error_handle', 'ScsPmsReceiveOrderController@error_handle'); //收货单异常处理
            Route::any('/storage_handle', 'ScsPmsReceiveOrderController@storage_handle'); //采购单入库处理
        });


        /**
         * @Author:      lyt
         * @DateTime:    2016-03-15 09:37:47
         * @Description: 用于用户发票的接口
         */
        Route::group(array('prefix' => '/invoice'),function(){
            Route::any('/list','ScsInvoiceController@invoiceList'); //订单的发票列表
            Route::any('/create','ScsInvoiceController@create'); //订单的发票 创建
            Route::any('/userInvoiceTitle','ScsInvoiceController@userInvoiceTitle'); //返回用户最新使用过的发票抬头信息
        });

        /**
         * @Author:      zwh
         * @DateTime:    业务提成
         * @Description: 业务提成相关
         */
        Route::group(array('prefix' => '/business'),function(){
            Route::any('/create','ScsBusinessCommissionController@create'); //创建
            Route::any('/verification','ScsBusinessCommissionController@verification'); //订单号验证
            Route::any('/lists','ScsBusinessCommissionController@lists'); //业务提成列表
            Route::any('/verifyBefore','ScsBusinessCommissionController@verifyBefore'); //业务提成前判断
            Route::any('/verify','ScsBusinessCommissionController@verify'); //业务提成审核
            Route::any('/verifyMessage','ScsBusinessCommissionController@verifyMessage'); //业务提成审核
            Route::any('/delete','ScsBusinessCommissionController@delete'); //业务提成删除
            Route::any('/items','ScsBusinessCommissionController@items'); //计提项目列表
        });
        /**
         * @Author:      zwh
         * @DateTime:    2016-12-7 11:40:22
         * @Description: 班组管理相关
         */
        Route::group(array('prefix' => '/team'),function(){
            Route::any('/employeeList','ScsTeamController@employeeList'); //员工列表
            Route::any('/update','ScsTeamController@update'); //修改用户班组
            Route::any('/create','ScsTeamController@create'); //创建班组
            Route::any('/updateTeam','ScsTeamController@updateTeam'); //编辑班组
            Route::any('/teamList','ScsTeamController@teamList'); //班组列表
         });
        
        /**
         * @Author:      zwh
         * @DateTime:    2016-12-8 15:14:53
         * @Description: 优惠券相关
         */
        Route::group(array('prefix' => '/coupon'),function(){
            Route::any('/verify','ScsCouponController@verify'); //优惠券核销
            Route::any('/getPushCoupon','ScsCouponController@getPushCoupon'); //获取推送的优惠券(服务单)
            Route::any('/getPushWashCoupon','ScsCouponController@getPushWashCoupon'); //获取推送的优惠券(洗车单)
        });
        
        /**
         * @Author:      zwh
         * @DateTime:    2016-12-22 10:23:02
         * @Description: 订单绩效管理相关
         */
        Route::group(array('prefix' => '/performance'),function(){
            Route::any('/search_order','ScsOrderPerformanceController@search_order'); //员工列表
            Route::any('/update','ScsOrderPerformanceController@update'); //修改班组绩效
            Route::any('/create','ScsOrderPerformanceController@create'); //创建订单绩效
            Route::any('/detail','ScsOrderPerformanceController@detail'); //编辑班组
            Route::any('/check_order','ScsOrderPerformanceController@check_order'); //检测项目是否可被编辑
        });
        /**
         * @Author:      zwh
         * @DateTime:    2016-12-28 14:53:23
         * @Description: 应收收回
         */
        Route::group(array('prefix' => '/receivable'),function(){
            Route::any('/lists','ScsReceivableController@lists'); //收款单列表
            Route::any('/order_lists','ScsReceivableController@order_lists'); //欠款单（包含退货单）列表
            Route::any('/create','ScsReceivableController@create'); //创建收款单
            Route::any('/detail','ScsReceivableController@detail'); //收款单详情
            // Route::any('/implement','ScsReceivableController@implement'); //执行收款单  //暂时不用废弃 开启符合支付逻辑
            Route::any('/sendMessage','ScsReceivableController@sendMessage'); //发送短信
            Route::any('/delete','ScsReceivableController@delete'); //删除收款单
            Route::any('/checkOrders','ScsReceivableController@checkOrders'); //验证所勾选订单是否存在已收回

            Route::any('/receive_paydesc','ScsReceivableController@receive_paydesc'); //验证所勾选订单是否存在已收回
            Route::any('/receive_pay','ScsReceivableController@receive_pay'); //验证所勾选订单是否存在已收回
            Route::any('/end_receive','ScsReceivableController@end_receive'); //执行该单子
            Route::any('/cancel_receive_pay','ScsReceivableController@cancel_receive_pay'); //取消收款单支付接口
            
            

            Route::any('/beginDetail','ScsReceivableController@beginDetail'); //期初欠款收回单详情
            Route::any('/sendBeginMessage','ScsReceivableController@sendBeginMessage'); // 期初创建发送短信
            Route::any('/beginCreate','ScsReceivableController@beginCreate'); // 创建期初欠款 添加抹除
            Route::any('/beginLists','ScsReceivableController@beginLists'); // 期初欠款的记录
            Route::any('/createBeginReceive','ScsReceivableController@createBeginReceive'); // 期初欠款收回
            Route::any('/storeShopsEsPlan', 'ScsEnterpriseController@storeShopsEsPlan'); //保存门店对企业用户的行动方案
            Route::any('/getShopsEsPlan', 'ScsEnterpriseController@getShopsEsPlan'); //获取门店对企业用户的行动方案
        });

        /**
         * @Author:      lyt
         * @DateTime:  2017-07-27 16:36:36
         * @Description: 服务卡相关
         */
        Route::group(array('prefix' => '/service_card'),function(){
            Route::any('/service_card_order_list', 'ScSServiceCardController@service_card_order_list'); //门店套餐卡销售订单
            Route::any('/service_card_order_detail', 'ScSServiceCardController@service_card_order_detail'); //门店套餐卡销售订单详情          
            Route::any('/order_create', 'ScSServiceCardController@order_create'); //门店套餐卡销售订单创建
            Route::any('/service_card_list', 'ScSServiceCardController@service_card_list'); //门店可以销售的套餐卡模板列表
            Route::any('/service_card_info', 'ScSServiceCardController@service_card_info'); //套餐卡模板详情
            Route::any('/choice_service_card', 'ScSServiceCardController@choice_service_card'); //套餐卡订单 更换套餐卡 用户车牌     
            Route::any('/order_paydesc', 'ScSServiceCardController@order_paydesc'); //套餐卡订单 支付信息   
            Route::any('/order_pay', 'ScSServiceCardController@order_pay'); //套餐卡订单支付订单      
            Route::any('/cancel_order_pay', 'ScSServiceCardController@cancel_order_pay'); //套餐卡订单支付记录撤销     
            
            Route::any('/cancel_order', 'ScSServiceCardController@cancel_order'); //套餐卡订单取消  
            
        });
        Route::group(array('prefix' => '/service_card',"before"=>"service_card_sub_filit"),function(){
            Route::any('/end_order', 'ScSServiceCardController@end_order'); //套餐卡订单结束 
        });    
        
        /**
         * @Author:      zy
         * @DateTime:  2017-07-28 16:36:36
         * @Description: 门店用户套餐卡相关
         */
        Route::group(array('prefix' => '/service_card'),function(){
            Route::any('/packList', 'ScsUserServiceCardController@packList'); //查找当前门店的产品信息
            Route::any('/packToServiceCard', 'ScsUserServiceCardController@packToServiceCard'); //当前门店包含当前产品的套餐卡的信息            
            Route::any('/ServiceCardUseRecord', 'ScsUserServiceCardController@ServiceCardUseRecord'); //套餐卡使用记录                      
            Route::any('/userServiceCardList', 'ScsUserServiceCardController@userServiceCardList'); //关闭套餐卡列表
            Route::any('/updateStatus', 'ScsUserServiceCardController@updateStatus'); //修改套餐卡状态
            Route::any('/userBindCarsList', 'ScsUserServiceCardController@userBindCarsList'); //绑定车辆 套餐卡信息
            Route::any('/unbindCar', 'ScsUserServiceCardController@unbindCar'); //解除绑定storeCar
            Route::any('/storeCar', 'ScsUserServiceCardController@storeCar'); //添加绑定车辆
        });
        
        /**
         * @Author:      zy
         * @DateTime:  2017-09-26 16:36:36
         * @Description: 消息提醒相关
         */
        Route::group(array('prefix' => '/remind'),function(){
            Route::any('/user_lists', 'ScsRemindController@user_lists'); //当前门店的技师+前台
            Route::any('/add_remind', 'ScsRemindController@add_remind'); //创建新的提醒
            Route::any('/month_info', 'ScsRemindController@month_info'); //返回门店用户当月的提醒数据
            Route::any('/search', 'ScsRemindController@search'); //根据时间和关键字查找提醒 
            Route::any('/update_remind', 'ScsRemindController@update_remind'); //更新提醒
            Route::any('/info', 'ScsRemindController@info');//返回单条提醒详情
        });
    });


    /**
     * @Author:      dx
     * @DateTime:    2016-02-22 11:28:34
     * @Description: 市场活动管理系统 mkt 请求的 API的借口
     */
    Route::group(array('prefix' => '/mkt'), function(){
        /*
         * mkt 用户API
         * */
        Route::group(array('prefix' => '/user'),function(){
            Route::any('/login','MktUserController@login'); //登陆
            Route::any('/logout','MktUserController@logout'); //登出
        });
        /*
         * 产品信息类 API
         * */
        Route::group(array('prefix' => '/product'),function(){
            Route::any('/promotion_package','MktProductController@promotion_package');//推广产品对应产品包信息
            Route::any('/base_package_item','MktProductController@base_package_item');//推广产品对应产品包信息-产品项
        });
        /*
         * 活动类 API
         * */

        Route::group(array('prefix' => '/activites'),function(){
            Route::any('/create','MktActivitesController@create');//市场活动管理内推活动创建
            Route::any('/common_banner_create','MktActivitesController@common_banner_create');//市场活动管理-普通banner创建
            Route::any('/activites_list','MktActivitesController@activites_list');//市场活动管理-活动列表
            Route::any('/position_list','MktActivitesController@position_list');//市场活动管理-商品展示位置
            Route::any('/city_shops_list','MktActivitesController@city_shops_list');//市场活动管理-活动城市范围及门店
            Route::any('/cars_list','MktActivitesController@cars_list');//市场活动管理-上门车
        });

        /*
         * 优惠券 API
         * */
        Route::group(array('prefix' => '/coupon'),function(){
            Route::any('/coupon_create','MktCouponController@coupon_create');//优惠券创建
            Route::any('/activity_create','MktCouponController@activity_create');//优惠活动创建
            Route::any('/activity_list','MktCouponController@activity_list');//优惠活动list
            Route::any('/coupon_list','MktCouponController@coupon_list');//优惠券list
            Route::any('/edit_activity','MktCouponController@edit_activity');//修改活动
            Route::any('/activity_show','MktCouponController@activity_show');//活动详情
            Route::any('/edit_activity_coupon','MktCouponController@edit_activity_coupon');//修改活动绑定的优惠券
            Route::any('/edit_coupon','MktCouponController@edit_coupon');//修改优惠券
            Route::any('/coupon_show','MktCouponController@coupon_show');//优惠券详情
            Route::any('/coupon_used_summary','MktCouponController@coupon_used_summary');//优惠券使用情况
            Route::any('/activity_excel_list','MktCouponController@activity_excel_list');//优惠活动导出list
            Route::any('/service_product_package','MktCouponController@service_product_package');//服务抵扣券使用的产品包

            Route::any('/send_conpous','MktCouponController@send_conpous');//优惠券的发放
            Route::any('/coupon_increment','MktCouponController@coupon_increment');//优惠券列表增加优惠券生成张数
            Route::any('/coupon_increment_show','MktCouponController@coupon_increment_show');//优惠券增加生成数量明细
            Route::any('/coupon_item_list','MktCouponController@coupon_item_list');//优惠券耗材列表
            Route::any('/coupon_activity_list','MktCouponController@coupon_activity_list');//优惠券活动包列表
            Route::any('/coupon_item_class_list','MktCouponController@coupon_item_class_list');//优惠券耗材分类列表

            Route::any('/city_list','MktCouponController@city_list');//优惠券城市列表
            Route::any('/save_citys','MktCouponController@save_citys');//保存优惠券城市信息
            Route::any('/shop_list','MktCouponController@shop_list');//优惠券的门店信息列表
            Route::any('/save_shops','MktCouponController@save_shops');//保存优惠券的门店信息

            Route::any('/ac_city_list','MktCouponController@ac_city_list');//优惠活动城市列表
            Route::any('/ac_save_citys','MktCouponController@ac_save_citys');//保存优惠活动城市信息
            Route::any('/ac_shop_list','MktCouponController@ac_shop_list');//优惠活动的门店信息列表
            Route::any('/ac_save_shops','MktCouponController@ac_save_shops');//保存优惠活动的门店信息
        });
        /**
         * @Author:      lyt
         * @DateTime:    2016-11-21 14:25:52
         * @Description: 用于 活动奖项的设置
         */
        Route::group(array('prefix' => '/award'),function(){
            Route::any('/lists','MktAwardController@lists');//活动奖项的列表
            Route::any('/prize_create','MktAwardController@prize_create');//添加活动奖项
            Route::any('/update','MktAwardController@update');//编辑活动奖项
            Route::any('/details','MktAwardController@details');//活动奖项详情
        });

        /*
         * 活动包类 API
         * */
        Route::group(array('prefix' => '/product_activity'),function(){
            Route::any('/create','MktProductActivityController@create');//创建活动包
            Route::any('/update','MktProductActivityController@update');//更新活动包
            Route::any('/city_list','MktProductActivityController@city_list');//城市列表
            Route::any('/lists','MktProductActivityController@lists');//活动包列表
            Route::any('/shop_list','MktProductActivityController@shop_list');//门店列表
            Route::any('/save_shops','MktProductActivityController@save_shops');//保存适配门店
            Route::any('/show','MktProductActivityController@show');//创建活动包
            Route::any('/save_citys','MktProductActivityController@save_citys');//保存适配门店
            Route::any('/statistics','MktProductActivityController@statistics');//活动包统计
            
            Route::any('/item_show','MktProductActivityController@item_show');//活动包内容 耗材详情
            Route::any('/item_serch','MktProductActivityController@item_serch');//活动包内容 耗材搜索
            Route::any('/del_papi','MktProductActivityController@del_papi');//取消活动包内容下的耗材
            Route::any('/supply_item_lists','MktProductActivityController@supply_item_lists');//品牌列表
            Route::any('/create_pap_items','MktProductActivityController@create_pap_items');//创建活动包内容下的 耗材
        });
        

        /**
         * @Author:      lyt
         * @DateTime:  2017-07-26 11:46:06
         * @Description: 服务卡相关
         */
        Route::group(array('prefix' => '/service_card'),function(){
            Route::any('/service_card_list','MktServiceCardController@service_card_list');//套餐卡基本信息列表   
            Route::any('/service_card_create','MktServiceCardController@service_card_create');//套餐卡基本信息创建
            Route::any('/service_card_car_limit','MktServiceCardController@service_card_car_limit');//套餐卡基本信息创建
            Route::any('/service_card_car_limit_store','MktServiceCardController@service_card_car_limit_store');//套餐卡的车型参数配置
            Route::any('/service_card_show','MktServiceCardController@service_card_show');//套餐卡基本信息详情
            Route::any('/service_card_order_list','MktServiceCardController@service_card_order_list');//套餐卡销售列表
            Route::any('/service_card_update','MktServiceCardController@service_card_update');//套餐卡 信息修改
            Route::any('/statistics','MktServiceCardController@statistics');//套餐卡统计

            Route::any('/city_list','MktServiceCardController@city_list');//套餐卡城市列表
            Route::any('/save_citys','MktServiceCardController@save_citys');//保存套餐卡城市信息
            Route::any('/shop_list','MktServiceCardController@shop_list');//套餐卡的门店信息列表
            Route::any('/save_shops','MktServiceCardController@save_shops');//保存套餐卡的门店信息
            
            Route::any('/city_list_use','MktServiceCardController@city_list_use');//套餐卡城市列表
            Route::any('/save_citys_use','MktServiceCardController@save_citys_use');//保存套餐卡城市信息
            Route::any('/shop_list_use','MktServiceCardController@shop_list_use');//套餐卡的门店信息列表
            Route::any('/save_shops_use','MktServiceCardController@save_shops_use');//保存套餐卡的门店信息
            
        });
        

    });
    /**
     * @Author:      zh
     * @DateTime:    2016-02-22 11:28:34
     * @Description: PMS-Purchase Management System API的借口
     */
    Route::group(array('prefix' => '/pms'), function() {
        /*
         * PMS 用户API
         * */
        Route::group(array('prefix' => '/user'), function () {
            Route::any('/login', 'PMSUserController@login'); //登陆
            Route::any('/logout', 'PMSUserController@logout'); //登出
        });
        /*
         * PMS 供应商API
         * */
        Route::group(array('prefix' => '/supplier'), function () {
            Route::any('/lists', 'PMSSupplierController@supplierList'); //列表
            Route::any('/supplierList', 'PMSSupplierNewController@supplierList'); //供应商列表
            Route::any('/modifyWorkTogetherType', 'PMSSupplierNewController@modifyWorkTogetherType'); //修改供应商的合作状态
            Route::any('/getSupplierFinanceInfo', 'PMSSupplierNewController@getSupplierFinanceInfo'); //获取供应商的财务相关信息
            Route::any('/getSupplierCompanyInfo', 'PMSSupplierNewController@getSupplierCompanyInfo'); //获取供应商的公司相关信息
            Route::any('/getSupplierBusinessInfo', 'PMSSupplierNewController@getSupplierBusinessInfo'); //获取供应商的业务信息相关
            Route::any('/getSupplierInfo', 'PMSSupplierNewController@getSupplierInfo'); //获取供应商的公司、业务、财务信息相关
            Route::any('/supplierUploadFile', 'PMSSupplierNewController@supplierUploadFile'); //供应商上传附件
            Route::any('/deleteSupplierFiles', 'PMSSupplierNewController@deleteSupplierFiles'); //供应商删除附件
            Route::any('/addContractInfo', 'PMSSupplierNewController@addContractInfo'); //添加供应商合同信息
            Route::any('/modifyContractInfo', 'PMSSupplierNewController@modifyContractInfo'); //编辑供应商合同信息
            Route::any('/contractList', 'PMSSupplierNewController@contractList'); //供应商合同列表
            Route::any('/contractFilesList', 'PMSSupplierNewController@contractFilesList'); //供应商合同附件列表
            Route::any('/contractLogList', 'PMSSupplierNewController@contractLogList'); //供应商合同操作记录列表
            Route::any('/getCityList', 'PMSSupplierNewController@getCityList'); //获取门店所在城市列表
            Route::any('/getShopList', 'PMSSupplierNewController@getShopList'); //获取门店列表(根据城市查询)
            Route::any('/statusSupplier', 'PMSSupplierController@statusSupplier'); //列表
            Route::any('/setSupplierType', 'PMSSupplierController@setSupplierType'); //更改采购类型
            Route::any('/setSupplierBm', 'PMSSupplierController@setSupplierBm'); //更改供货商编码
            Route::any('/getOne', 'PMSSupplierController@getOne'); //详情
            Route::any('/storeOne', 'PMSSupplierController@storeOne'); //保存
            Route::any('/getOperationInfo', 'PMSSupplierController@getOperationInfo'); //经营资料
            Route::any('/getOperationModels', 'PMSSupplierController@getOperationModels'); //可选车型
            Route::any('/getOperationBrands', 'PMSSupplierController@getOperationBrands'); //可选品牌
            Route::any('/statusOperationModel', 'PMSSupplierController@statusOperationModel'); //更改关联车型状态
            Route::any('/statusOperationBrand', 'PMSSupplierController@statusOperationBrand'); //更改关联品牌状态
            Route::any('/statusOperationMajor', 'PMSSupplierController@statusOperationMajor'); //设置主营类型
            Route::any('/setMajorBusiness', 'PMSSupplierController@setMajorBusiness'); //设置主营业务
            Route::any('/getGoodsPrice', 'PMSSupplierController@getGoodsPrice'); //商品报价列表
            Route::any('/getGoods', 'PMSSupplierController@getGoods'); //可选商品
            Route::any('/getGoodsPriceOne', 'PMSSupplierController@getGoodsPriceOne'); //获取商品报价
            Route::any('/storeGoodsPrice', 'PMSSupplierController@storeGoodsPrice'); //保存商品报价
            Route::any('/importGoodsPrice', 'PMSSupplierController@importGoodsPrice'); //导入商品报价
            Route::any('/getOPRecords', 'PMSSupplierController@getOPRecords'); //操作记录
            Route::any('/fileList', 'PMSSupplierController@fileList'); //文件列表
            Route::any('/uploadFile', 'PMSSupplierController@uploadFile'); //上传文件
            Route::any('/getAccountSys', 'PMSSupplierController@getAccountSys'); //系统配置
            Route::any('/statusAccount', 'PMSSupplierController@statusAccount'); //更改账套关联状态
            Route::any('/getAccountList', 'PMSSupplierController@getAccountList'); //账套列表
            Route::any('/storeAccount', 'PMSSupplierController@storeAccount'); //保存账套关系
            Route::any('/editRegularPay', 'PMSSupplierController@editRegularPay'); //修改结算方式
            Route::any('/get_province', 'PMSSupplierController@get_province');  //获取省
            Route::any('/get_city', 'PMSSupplierController@get_city');          //获取市
            Route::any('/get_region', 'PMSSupplierController@get_region');      //获取县/区
            Route::any('/get_province_city_region', 'PMSSupplierController@get_province_city_region');  //获取所有的省市县区
            Route::any('/createSupplier', 'PMSSupplierController@createSupplier'); //保存
            Route::any('/creatSupplierBusiness', 'PMSSupplierController@creatSupplierBusiness'); //新建业务信息
            Route::any('/creatSupplierLicence', 'PMSSupplierController@creatSupplierLicence'); //新建财务信息
            Route::any('/updateSupplier', 'PMSSupplierController@updateSupplier'); //整体保存
            Route::any('/linkManStore', 'PMSSupplierController@linkManStore'); //联系人新建和更新
            Route::any('/linkManList', 'PMSSupplierController@linkManList'); //联系人列表
            Route::any('/linkManDel', 'PMSSupplierController@linkManDel'); //联系人删除
            Route::any('/linkManShow', 'PMSSupplierController@linkManShow'); //联系人是否可见配置
        });
        
        Route::group(array('prefix' => '/order'), function () {
            Route::any('/orderList', 'PMSOrderController@orderList'); //采购单列表
            Route::any('/shopList', 'PMSOrderController@shopList'); //门店列表
            Route::any('/createOrder', 'PMSOrderController@createOrder'); //创建采购单
            Route::any('/orderInfo', 'PMSOrderController@orderInfo'); //采购单详情
            Route::any('/delOrder', 'PMSOrderController@delOrder'); //采购单取消
            Route::any('/delOrderProduct', 'PMSOrderController@delOrderProduct'); //采购单商品取消
            Route::any('/searchProduct', 'PMSOrderController@searchProduct'); //商品搜索
            Route::any('/addProduct', 'PMSOrderController@addProduct'); //商品添加
            Route::any('/approveOrder', 'PMSOrderController@approveOrder'); //提交审核
            Route::any('/delApproveOrder', 'PMSOrderController@delApproveOrder'); //取消审核
            Route::any('/overRuleOrder', 'PMSOrderController@overRuleOrder'); //驳回
            Route::any('/returnOrder', 'PMSOrderController@returnOrder'); //反审核
            Route::any('/okOrder', 'PMSOrderController@okOrder'); //审核通过
            Route::any('/planProducts', 'PMSOrderController@planProducts'); //采购单订货详情
            Route::any('/resultProducts', 'PMSOrderController@resultProducts'); //采购单清点明细
            Route::any('/statusOrderList', 'PMSOrderController@statusOrderList'); //采购单流转
            Route::any('/editHope', 'PMSOrderController@editHope'); //编辑期望日期
            Route::any('/groupProduct', 'PMSOrderController@groupProduct'); //采购单汇总列表
            Route::any('/supplierSearch', 'PMSOrderController@supplierSearch'); //供应商搜索项
            Route::any('/shopSearch', 'PMSOrderController@shopSearch'); //门店搜索项
        });
        
        Route::group(array('prefix' => '/plan'), function () {
            Route::any('/planProductsList', 'PMSPlanOrderController@planProductsList'); //采购项列表
            Route::any('/ProductHistory', 'PMSPlanOrderController@ProductHistory'); //采购项历史记录
            Route::any('/cutProduct', 'PMSPlanOrderController@cutProduct'); //采购项拆分
            Route::any('/supplierList', 'PMSPlanOrderController@supplierList'); //供应商列表
            Route::any('/supplierPlanList', 'PMSPlanOrderController@supplierPlanList'); //供应商下的有效订货单列表
            Route::any('/createPlanOrder', 'PMSPlanOrderController@createPlanOrder'); //创建订货单
            Route::any('/addrssSelect', 'PMSPlanOrderController@addrssSelect'); //获取门店地址
            Route::any('/addPlanProducts', 'PMSPlanOrderController@addPlanProducts'); //加入订货单
            Route::any('/planOrderList', 'PMSPlanOrderController@planOrderList'); //订货单列表
            Route::any('/planOrderInfo', 'PMSPlanOrderController@planOrderInfo'); //订货单详情
            Route::any('/editOtherOrder', 'PMSPlanOrderController@editOtherOrder'); //编辑第三方单号
            Route::any('/editAddress', 'PMSPlanOrderController@editAddress'); //编辑配送地址
            Route::any('/delPlanOrder', 'PMSPlanOrderController@delPlanOrder'); //取消订货单
            Route::any('/subPlanOrder', 'PMSPlanOrderController@subPlanOrder'); //提交订货单
            Route::any('/supplyBrand', 'PMSPlanOrderController@supplyBrand'); //品牌列表
            Route::any('/planProducts', 'PMSPlanOrderController@planProducts'); //订货单下的采购项列表
            Route::any('/insertPlanProducts', 'PMSPlanOrderController@insertPlanProducts'); //订货单下加入采购项
            Route::any('/error_handle', 'PMSPlanOrderController@error_handle'); //问题处理
            Route::any('/resultProducts', 'PMSPlanOrderController@resultProducts'); //订货单清点明细
            Route::any('/togetherProducts', 'PMSPlanOrderController@togetherProducts'); //商品汇总
        });
        
        //商品管理
        Route::group(array('prefix' => '/product'), function () {
            Route::any('/level_3', 'PMSProductController@level_3'); //3级分类检索
            Route::any('/level_2', 'PMSProductController@level_2'); //2级分类检索
            Route::any('/level_1', 'PMSProductController@level_1'); //1级分类检索
            Route::any('/unitList', 'PMSProductController@unitList'); //计量单位
            Route::any('/brands', 'PMSProductController@brands'); //车辆品牌
            Route::any('/series', 'PMSProductController@series'); //车辆系列
            Route::any('/years', 'PMSProductController@years'); //车辆年份
            Route::any('/models', 'PMSProductController@models'); //车型
            Route::any('/search', 'PMSProductController@search'); //商品管理搜索
            Route::any('/info', 'PMSProductController@info'); //商品明细
            Route::any('/skuMoney', 'PMSProductController@skuMoney'); //商品管理-比价
            Route::any('/remain', 'PMSProductController@remain'); //商品管理-库存
            Route::any('/compareMoney', 'PMSProductController@compareMoney'); //比价报价
            Route::any('/query_price_new', 'PMSProductController@query_price_new'); //采购询价
        });

        //数据统计
        Route::group(array('prefix' => 'StatisSearch'), function(){
            Route::any('/ShopListSearch', 'PMSStatisSearchController@ShopListSearch');  //门店信息检索
            Route::any('/SupplierSearch', 'PMSStatisSearchController@SupplierSearch');  //供货商1检索
            Route::any('/city_region', 'PMSStatisSearchController@city_region');  //市区联动检索
            Route::any('/CitySearch', 'PMSStatisSearchController@CitySearch');  //市检索
        });
        
        Route::group(array('prefix' => 'Statis'), function(){
            Route::any('/planProductsList', 'PMSStatisController@planProductsList');  //订货单列表
            Route::any('/StorageItemList', 'PMSStatisController@StorageItemList');  //采购单列表
            Route::any('/monthStatice', 'PMSStatisController@monthStatice');  //订货单月统计明细
            Route::any('/supplyBrandList', 'PMSStatisController@supplyBrandList');  //获取品牌列表
        });

        Route::group(array('prefix' => 'dept'), function(){
            Route::any('/purchaseList', 'PMSPurchaseController@purchaseList');  //部门采购列表
            Route::any('/create', 'PMSPurchaseController@create');  //部门采购创建
            Route::any('/delete', 'PMSPurchaseController@delete');  //部门采购删除
            Route::any('/purchaseShow', 'PMSPurchaseController@purchaseShow');  //部门采购详情            
        });
    });

    /*
     * 上门车技师端 ods api 接口
     * */
    Route::group(array('prefix' => '/ods'), function(){
        /*
         * ods 用户API
         * */
        Route::group(array('prefix' => '/user'),function(){
            Route::any('/login','OdsUserController@login'); //登录
            Route::any('/logout','OdsUserController@logout'); //登出
        });

        /*
         * ods 门店API
         * */
        Route::group(array('prefix' => '/shop'),function(){
            Route::any('/get_engineer_list','OdsShopController@get_engineer_list'); //获取上门车技师列表
        });

        /*
         * ods 产品API
         * */
        Route::group(array('prefix' => '/product'),function(){
            Route::any('/get_product_list','OdsProductController@get_product_list'); //获取上门产品包列表
            Route::any('/get_product_detail','OdsProductController@package_show'); //获取产品包详情
        });

        /*
         * ods 订单API
         * */
        Route::group(array('prefix' => '/order'),function(){
            Route::any('/get_order_list','OdsOrderController@get_order_list'); //获取上门车订单列表
            Route::any('/show','OdsOrderController@show'); //获取上门车订单详情
            Route::any('/prints','OdsOrderController@prints'); //打印信息详情

            Route::any('/departure','OdsOrderController@departure'); //订单出发
            Route::any('/arrival','OdsOrderController@arrival'); //订单到达
            Route::any('/service_begin','OdsOrderController@service_begin'); //订单服务开始
            Route::any('/service_end','OdsOrderController@service_end'); //订单服务结束
            Route::any('/pay','OdsOrderController@pay'); //订单结算
            Route::any('/abort','OdsOrderController@abort'); //订单异常终止

            Route::any('/save_30_check','OdsOrderController@save_30_check'); //保存订单30项检测信息

            Route::any('/get_30_check','OdsOrderController@get_30_check'); //获取订单30项检测信息

            Route::any('/save_product','OdsOrderController@save_product'); //添加产品包
            Route::any('/del_product','OdsOrderController@del_product'); //删除产品包
        });

        /*
         * ods 配件API
         * */
        Route::group(array('prefix' => '/part'),function(){
            Route::any('/create','OdsPartController@create_maintenance_car_parts'); //生成上门车配件列表
            Route::any('/get_part_list','OdsPartController@get_part_list'); //获取上门车配件列表
            Route::any('/change_part_status','OdsPartController@change_part_status'); //修改上门车配件状态
        });

        /*
         * ods 客户API
         * */
        Route::group(array('prefix' => '/custom'),function(){
            Route::any('/update_car_info','OdsCustomController@update_car_info'); //采集用户车辆信息接口
        });

    });

    //活动
    Route::group(array('prefix' => '/activity'), function(){
        //王者荣耀-支持战队
        Route::group(array('prefix' => 'kingglorysupport'), function(){
            Route::any('/teamlist', 'KingGlorySupportController@teamlist');  //战队信息查询
            Route::any('/support', 'KingGlorySupportController@support');  //支持
            Route::any('/browse', 'KingGlorySupportController@browse');  //浏览量
            Route::any('/SupportLoss', 'KingGlorySupportController@SupportLoss');  //支持流失统计
        });

        //万泉河店活动
        Route::group(array('prefix' => 'wanquanhe'), function(){
            Route::any('/anniversary', 'WanQuanHeController@Anniversary');   //万泉河店周年庆活动
        });

        //2018-07-26 3M活动
        Route::group(array('prefix' => 'activity_3M'), function(){
            Route::any('/share_num', 'Activity_3MController@index');   //万泉河店周年庆活动
        });

        //2018-08-14 车友会洗车活动
        Route::group(array('prefix' => 'Car_friend'), function(){
            Route::any('/login', 'CarFriendWashController@login');   //车友会洗车活动-登录领取优惠券
            Route::any('/share_num', 'CarFriendWashController@share_num');   //车友会洗车活动-统计分享次数
        });

        //2018-08-21 广渠路店新店开业活动
        Route::group(array('prefix' => 'guangqulu'), function(){
            Route::any('/login','GuangQuLuController@login');   //广渠路店新店开业活动-登录领取优惠券(洗车活动)
            Route::any('/maintain_login', 'GuangQuLuController@maintain_login');   //广渠路店新店开业活动-登录领取优惠券(保养完成后领机油券)
            Route::any('/share_num', 'GuangQuLuController@share_num');   //广渠路店新店开业活动-统计分享次数(洗车活动)
            Route::any('/washLogin', 'GuangQuLuController@WashLogin');   //广渠路十元洗车活动
        });

        //新店开业活动
        Route::group(array('prefix' => '/newshop'), function(){
            Route::group(array('prefix' => '/TSL'), function(){
                Route::any('/login', 'NewShopController@login');   //天津-南楼店、石家庄-建华店、廊坊-解放道店新店开业活动-登录领取优惠券
                Route::any('/share_num', 'NewShopController@share_num');   //天津-南楼店、石家庄-建华店、廊坊-解放道店新店开业活动-统计分享次数(洗车活动)-统计分享次数(洗车活动)
            });
            Route::group(array('prefix' => '/zsxl'), function(){

                Route::any('/share_num_zsxl', 'NewShopController@share_num_zsxl');   //石家庄中山西路新店开业活动-统计分享次数(洗车活动)-统计分享次数(洗车活动)
            });
        });

        //唐山五店周年庆活动
        Route::group(array('prefix' => '/anniversary'),function(){
            Route::group(array('prefix' => '/TangShan'),function(){
                Route::any('/login','TangShanAnniversaryController@login');  //订单备货 出库
            });
        });

        //沧州活动
        Route::group(array('prefix' => '/cangzhou'),function(){
            Route::group(array('prefix' => '/ccb'),function(){
                Route::any('/login','CangZhouCCBController@login');  //沧州和建行合作活动
            });
        });

        Route::any('/login', 'ActivityLoginController@login');  //登陆
    });
});

/*
 * 账务 api 接口
 * */
Route::group(array('prefix' => '/account'), function(){
    /*
     * 门店 上门车 结算
     * */
    Route::group(array('prefix' => '/order'),function(){
        Route::any('/pending','AccountController@pending_order'); //订单结算
    });

    /*
     * 客服系统 充值
     * */
    Route::group(array('prefix' => '/cms'),function(){
        Route::any('/recharge','AccountController@custom_service_recharge'); //客服充值
        Route::any('/credit','AccountController@custom_service_credit'); //客服调整用户额度
    });
});

/*
 * 小工具
 * */
Route::group(array('prefix' => '/tools'),function() {
    Route::any('/order_check', 'AdjustController@order_check');
    Route::any('/order_check_all', 'AdjustController@order_check_all');

    Route::any('/report_dirver', 'AdjustController@report_dirver');
    Route::any('/report_dirverimg', 'AdjustController@report_dirverimg');

    Route::any('/scanning_car_no', 'AdjustController@scanning_car_no');
});

Route::group(array('prefix' => '/print'),function() {
    Route::any('/prints', 'AutoprintController@prints');//测试打印

    Route::any('/lists', 'AutoprintController@lists');//打印列表 
    Route::any('/update', 'AutoprintController@update');//更改打印状态
    Route::any('/save_30_check_print', 'AutoprintController@save_30_check_print');//更改打印状态
});

/*
 * 报表
 * */
Route::group(array('prefix' => '/report'),function(){
    Route::any('/get_work_hour_report','ReportController@get_work_hour_report');//结算工时分类统计
    Route::any('/temp_get_work_hour_report','ReportController@temp_get_work_hour_report');//未计算的工时分类统计 
//    Route::any('get_work_hour_report','ReportController@get_work_hour_report');//进销存报表商品辅料库
//    Route::any('get_work_hour_report','ReportController@get_work_hour_report');//进销存报表商品配件库
//    Route::any('get_work_hour_report','ReportController@get_work_hour_report');//进销存报表已结辅料库
//    Route::any('get_work_hour_report','ReportController@get_work_hour_report');//进销存报表已结配件库
    Route::any('/get_profit_report','ReportController@get_profit_report');//毛利率分析
    Route::any('/get_check_inventory_supply','ReportController@get_check_inventory_supply');//盘点查询
    Route::any('/get_storage_detail','ReportController@get_storage_detail');//入库查询
    Route::any('/get_out_detail','ReportController@get_out_detail');//出库查询
    Route::any('/get_export_detail','ReportController@get_export_detail');//维修商品出库明细
    Route::any('/temp_get_export_detail','ReportController@temp_get_export_detail');//维修商品出库明细
//    Route::any('get_work_hour_report','ReportController@get_work_hour_report');//销售领用出库明细

    Route::any('/get_order_income','ReportController@get_order_income');//订单收入明细
    Route::any('/get_order_parts','ReportController@get_order_parts');//订单配件明细

    Route::any('/get_work_hour_product','ReportController@get_work_hour_product');//获取订单的服务包分类接口    
    Route::any('/get_order_services','ReportController@get_order_services');//订单服务明细
    Route::any('/get_order_parts_cost','ReportController@get_order_parts_cost');//订单配件成本统计

    Route::any('/get_company_credit_detail','ReportController@get_company_credit_detail');//企业客户应收账款明细
    Route::any('/get_company_credit_sum','ReportController@get_company_credit_sum');//企业客户应收账款统计

    Route::any('/get_engineer_work_detail','ReportController@get_engineer_work_detail');//技师工作绩效明细
    Route::any('/get_supply_stock','ReportController@get_supply_stock');//耗材的 库存成本明细

    Route::any('/get_supply_stock_new','ReportController@get_supply_stock_new');//耗材的 库存成本明细

    Route::any('/get_order_derate_detail','ReportController@get_order_derate_detail');//订单减免详情
    Route::any('/temp_get_order_detail','ReportController@temp_get_order_detail');//未结算订单信息


    Route::any('/get_return_order_detail','ReportController@get_return_order_detail');//订单退货详情
    Route::any('/total_operating_data','ReportController@total_operating_data');//流水表
    Route::any('/get_engineer_supply_detail','ReportController@get_engineer_supply_detail');//技师耗材业绩明细


    Route::any('/get_enterprice_order_detail','ReportController@get_enterprice_order_detail');//企业的订单统计
    Route::any('/get_insurance_detail','ReportController@get_insurance_detail');//保险统计
    Route::any('/get_bpjx_detail','ReportController@get_bpjx_detail');//保险统计


    Route::any('/get_yingshou','ReportController@get_yingshou');//收应收统计

    Route::any('/putSXPRecords','ReportSuiXingPayController@putSXPRecords');//导入随行付数据
    Route::any('/receiveDataFromSXP','ReportSuiXingPayController@receiveDataFromSXP');//导入随行付数据
    Route::any('/statement','ReportSuiXingPayController@statement');//对账

});

Route::get('/', function()
{
    return View::make('hello');
});


Route::any('sms',function(){
    $type = Input::get('type');
    $order_id = Input::get('order_id');
    $code = SendMessage::sendSms($type,$order_id);
    $response = Response::make($code, 200);
    return $response;
});

//测试二维码生成
//测试地址 http://api.anhui.com/qrcode?size=200&text=http://www.baidu.com
Route::get('qrcode', function(){
    $size = Input::get('size');
    $text = Input::get('text');
    if(!$size || !$text) return '';
    $qrCode = new QrCode();
    $qrCode->setText($text);
    $qrCode->setSize($size);
    $qrCode->setPadding(10);
    $response = Response::make($qrCode->get(), 200);
    $response->header('content-type', 'image/png');
    return $response;
});

Route::get('vin/search', function(){
    $vin_code = Input::get('vinCode');
    $response = Vin::search($vin_code);
    return $response;
});

/*
 * 安装
 * 国内镜像提速 http://pkg.phpcomposer.com/
 * php composer.phar require "overtrue/laravel-wechat:2.1.*"
 * php composer.phar require "overtrue/wechat"
 * */

Route::group(array('prefix' => '/wechat' ,"before"=>"repeated_submission_login"),function(){
    Route::any('/login','LoginController@login');//用户登录或注册
});

Route::group(array('prefix' => '/wechat' ,"before"=>"repeated_receive_coupons"),function(){
    Route::any("/receive", "UserController@receive"); //领取优惠券
});

Route::group(array('prefix' => '/wechat' ,"before"=>"repeated_receive_coupons_two"),function(){
    Route::any("/coupon_receive", "UserController@coupon_receive"); //活动领取优惠券
    Route::any("/coupon_receive_cz", "UserController@coupon_receive_cz"); //沧州活动领取优惠券
    Route::any("/coupon_receive_cz2", "UserController@coupon_receive_cz2"); //沧州第二店活动领取优惠券
});

Route::group(array('prefix' => '/wechat' ,"before"=>"repeated_receive_coupons_new"),function(){
    Route::any("/coupon_receive_bj", "UserController@coupon_receive_bj"); //北京洗车活动
    Route::any("/coupon_receive_hecf", "UserController@coupon_receive_hecf"); //河北赤峰洗车活动
});

Route::group(array('prefix' => 'wechat'),function(){
    /*
     * 接收服务器
     * */
    Route::group(array('prefix' => '/server'),function(){
        Route::any('/routes','WechatServerController@routes'); //接收微信服务器消息,核心处理函数。
    });

    /*
     * 用户相关
     * */
    Route::group(array('prefix' => '/user'),function(){
        Route::any('/lists','WechatUserController@lists'); //获取用户列表
        Route::any('/get','WechatUserController@get'); //获取用户详情
    });

    /*
     * 支付相关
     * */
    Route::group(array('prefix' => '/pay'),function(){
        Route::any('/prepare','WechatPaymentController@prepareOrder'); //统一下单
        Route::any('/notify','WechatPaymentController@payBack'); //支付结果通知
    });

    /*
     * 版本
     * */
    Route::group(array('prefix' => '/common'),function(){
        Route::any('/app_update','CommonController@app_update');
        Route::any('/uploadimage','CommonController@uploadimage'); //图片上传
        Route::options('/uploadimage','CommonController@uploadimage'); //图片上传
    });

    /*
     * wechat2.0 相关路由 20170329
     * */
    Route::any('/sms_check_code','HomeController@sms_check_code');//用户申请短信验证码
    Route::any('img_code','HomeController@img_code');//生成数字验证码图片
    Route::any('/weather','HomeController@weather');//天气接口

    Route::any('/limit_line','HomeController@limitLine');//限行接口
    Route::any('/check_token','LoginController@checkToken');//验证token
    Route::any('/lgout','LoginController@lgout');//用户退出登录
    Route::any('/banner','LoginController@banner');//首页banner轮播
    Route::any('/network_protocol','CommonController@network_protocol');//网络协议
    Route::any('/app_download','CommonController@app_download');//app下载


    Route::any('/coupon','UserController@myCoupon');//优惠券
    Route::any("/exchangeCoupon","UserController@exchangeCoupon");//兑换优惠券
    Route::any("/newUser",'UserController@newUser');//新用户注册领券
    Route::any("/inviteRegister","UserController@inviteRegister");//邀请注册活动
    Route::any("/getPhone","LoginController@getPhone");//获取手机号

    Route::any('/feedback','UserController@feedback');//用户反馈
    Route::any('/feedBackList','UserController@feedBackList');//用户反馈列表
    Route::any('/show','UserController@show');//用户详情
    Route::any('/update','UserController@update');//用户修改
    Route::any('/garage','UserController@garage');//用户车库
    Route::any('/remainingSum','UserController@remainingSum');//用户余额及充值消费记录
    Route::any('/myInformation','UserController@myInformation');//我的信息

    Route::any('/createOrder','OrderController@createOrder');//下单
    Route::any('/orderList','OrderController@orderList');//订单列表
    Route::any('/order_details','OrderController@orderDetails');//订单详情
    Route::any('/remove_order','OrderController@removeOrder');//取消预约
    Route::any('/shortName','OrderController@shortName');//地区缩写
    Route::any('/choseTime','OrderController@choseTime');//根据门店选择时间
    Route::any('/onceShop','OrderController@onceShop');//曾到店

    Route::any('/store_list','StoreController@storeList');//门店列表
    Route::any('/store_details','StoreController@storeDetails');//门店详情
    Route::any('/evaluation_list','EvaluationController@evaluationList');//评价列表
    Route::any('/evaluation_details','EvaluationController@evaluationDetails');//评价详情
    Route::any('/evaluation','EvaluationController@evaluation');//评价

    Route::any('/checkReportDetail','OrderController@checkReportDetail');//检测报告详情
    Route::any('/checkReport','OrderController@checkReport');//首页

    Route::any('/location','UserController@locationCity');//城市列表

    Route::any('/check','WechatOauthController@check');//验证是否授权
    Route::any('/callBack','WechatOauthController@callBack');//回调
    Route::any('/checkPower','WechatOauthController@checkPower');//是否授权
    Route::any('/sendMessage','WechatOauthController@sendMessage');//发送消息
    Route::any('/jssdk','WechatOauthController@jssdk');//分享获取前置微信参数

    Route::any('/share','UserController@share');//分享

    Route::any('/carBrand','CarController@carBrand');//车辆品牌
    Route::any('/carSeries','CarController@carSeries');//车辆系列
    Route::any('/series','CarController@series');//车辆系列 安卓app
    Route::any('/gasRate','CarController@gasRate');//车辆排量
    Route::any('/modelYear','CarController@modelYear');//车型年款
    Route::any('/modelName','CarController@modelName');//车辆型号

    Route::any('/productPack','OrderController@productPack');//根据车型匹配产品包
    Route::any('/carMainManual','OrderController@carMainManual');//用于指定车型的 指定里程 保养手册
    Route::any("/getProductPack","OrderController@getProductPack");//根据耗材品类id提供产品包
    Route::any("/choseProduct","OrderController@choseProduct");//选择产品包

    Route::any("/meta","YobeeController@meta");//1.2获取元数据

    /*
     * 友盟推送相关路由
     * */
    Route::any("/u_bind","UmengPushController@u_bind");//友盟绑定用户id
    Route::any("/u_list","UmengPushController@u_list");//友盟 msg list
    Route::any("/u_demo","UmengPushController@u_demo");//demo
    Route::any("/u_read","UmengPushController@u_read");//消息状态变更


    Route::any("/cardOrderList","ServiceCardOrderController@cardOrderList");//套餐卡购买订单列表
    Route::any("/cardOrderDetails","ServiceCardOrderController@cardOrderDetails");//套餐卡订单详情
    Route::any("/cardOrderCancel","ServiceCardOrderController@cardOrderCancel");//取消套餐卡订单
    Route::any("/cardDetail","ServiceCardOrderController@cardDetail");//套餐卡详情
    Route::any("/bindCar","ServiceCardOrderController@bindCar");//绑定车辆
    Route::any("/bindCarList","ServiceCardOrderController@bindCarList");//绑定车辆列表

    Route::group(array('prefix' => '/service_card'),function(){
        Route::any('/create', 'ServiceCardController@create'); //套餐卡订单创建
        Route::any('/card_list', 'ServiceCardController@card_list'); //套餐卡 卡包列表
        Route::any('/sale_card_list', 'ServiceCardController@sale_card_list'); //可售套餐卡
        Route::any('/show', 'ServiceCardController@show'); //套餐卡 详情
        Route::any('/check_card', 'ServiceCardController@check_card');
        Route::any('/order_pay', 'ServiceCardController@order_pay');//套餐卡订单支付
        Route::any('/wx_js', 'WechatPaymentController@wx_js');//调起微信支付 废弃
        Route::any('/order_query', 'WechatPaymentController@order_query');//查询微信支付状态
        Route::any('/unified_order', 'ServiceCardController@unified_order');//h5 统一下单

    });
    //双旦活动
    Route::group(['prefix' => '/double_dan'],function(){
        Route::any('/check','AllActivityController@double_dan_check');//验证活动
        Route::any('/luckDraw','AllActivityController@luckDraw');//抽奖
        Route::any('/receive','AllActivityController@receive');//领奖
    });
    Route::any('/tg_register','AllActivityController@tg_register');//唐钢用户注册活动


    /*
    * wechat3.0 相关路由 20180712
    * */
    Route::group(['prefix' => '/api3.0'],function(){
        Route::any('/recommended_season_list','RecommendedSeasonController@recommended_season_list');//当季推荐列表
        Route::any('/check','ApiWechatOauthController@check');//验证是否授权
        Route::any('/callBack','ApiWechatOauthController@callBack');//回调
        Route::any('/checkPower','ApiWechatOauthController@checkPower');//是否授权
        Route::any('/sendMessage','ApiWechatOauthController@sendMessage');//发送消息
        Route::any('/jssdk','ApiWechatOauthController@jssdk');//分享获取前置微信参数
        Route::any('/jssdkShare','ApiWechatOauthController@jssdkShare');//分享获取前置微信参数(增加判断是否关注公众号)
        Route::any('/share','ApiUserController@share');//分享
        Route::any('/voice_check_code','HomeController@voice_check_code');//语音验证码

        Route::any('/banner_list','ApiBannerController@banner_list');//轮播图列表

        Route::group(['prefix' => '/service'],function(){
            Route::any('/serviceListS5','ApiServiceController@serviceListS5');   //服务列表(最新接口、S5)
            Route::any('/serviceType','ApiServiceController@serviceType');   //服务分类(最新接口、S5)
            Route::any('/serviceShowS5','ApiServiceController@serviceShowS5');   //服务详情(最新接口、S5)
            Route::any('/serviceValidation','ApiServiceController@serviceValidation');   //服务去下单效验是否有适配门店
        });

        Route::any('/CarStatus','ApiServiceController@CarStatus');//首页-车辆状态
        Route::any('/serviceList','ApiServiceController@serviceList');   //服务列表
        Route::any('/modelYear','ApiCarController@modelYear');   //服务列表-获取车辆年款
        Route::any('/modelName','ApiCarController@modelName');   //服务列表-获取车辆车型－名称
        Route::any('/carList','ApiCarController@carList');   //换车列表
        Route::any('/addServiceCar','ApiCarController@addServiceCar');   //添加车辆
        Route::any('/serviceShow','ApiServiceController@serviceShow');   //服务详情 基础信息查询
        Route::any('/service_onload','ApiServiceController@service_onload');   //服务列表车辆信息查询
        Route::any('/serviceShowPrice','ApiServiceController@serviceShowPrice');   //服务详情 价格计算
        Route::any('/addShoppingCart','ApiServiceController@addShoppingCart');   //添加购物车
        Route::any('/create_order','ApiServiceController@create_order');   //立即下单/购物车下单
        Route::any('/qitacreateOrder','ApiServiceController@qitacreateOrder');   //其他下单
        Route::any('/shopping_list','ApiServiceController@shopping_list');   //购物车列表
        Route::any('/shoppingSum','ApiServiceController@shopping_sum');   //购物车列表
        Route::any('/del_shopping_cart','ApiServiceController@del_shopping_cart');   //删除购物车商品
        Route::any("/bindCar","ApiServiceCardOrderController@bindCar");//绑定车辆
        Route::any("/delCar","ApiCarController@delCar");//解绑车辆
        Route::any("/defaultCar","ApiCarController@defaultCar");//更改默认车辆
        Route::any("/shopList","ApiServiceController@shopList");//下单页面门店列表

        Route::group(['prefix' => '/order'],function(){
            Route::any('/order_list','ApiOrderController@orderList');   //订单列表
            Route::any('/order_details','ApiOrderController@orderDetails');   //订单详情
            Route::any('/remove_order','ApiOrderController@removeOrder');   //取消预约
        });

        Route::group(['prefix' => '/coupon'],function(){
            Route::any('/push_coupon','ApiCouponController@pushCoupon');   //优惠券推送
            Route::any('/cancelPushCoupon','ApiCouponController@cancelPushCoupon');   //取消优惠券推送
            Route::any('/myCoupon','ApiCouponController@myCoupon');   //优惠券列表
            Route::any('/couponShow','ApiCouponController@couponShow');   //优惠券详情
            Route::any('/AipOcr','ApiCouponController@AipOcr');//文字识别（优惠券识别）
            Route::any("/exchangeCoupon","ApiCouponController@exchangeCoupon");//兑换优惠券
        });

        Route::group(['prefix' => '/user'],function(){
            Route::any('/show','ApiUserController@show');   //用户详情
            Route::any('/car_show','ApiUserController@car_show');//车辆详情
            Route::any('/garage','ApiUserController@Garage');   //车库列表
            Route::any('/del_user_car_info','ApiUserController@del_user_car_info');   //删除车辆
            Route::any('/myInformation','ApiUserController@myInformation');//我的信息
            Route::any('/remainingSum','ApiUserController@remainingSum');//用户余额及充值消费记录
            Route::any('/change_heading_img','ApiUserController@change_heading_img');//更换微信头像
            Route::any("/u_list","ApiUserController@u_list");//消息列表
            Route::any("/u_show","ApiUserController@u_show");//消息详情
            Route::any("/getLegalRight","ApiUserController@getLegalRight");//会员权益
            Route::any('/tencent_get_location','ApiUserController@getLocation');  //腾讯地图获取坐标
        });

        Route::group(array('prefix' => '/service_card'),function(){
            Route::any('/cardAllowance', 'ApiServiceCardOrderController@cardAllowance'); //套餐余量
            Route::any('/cardAllowanceShow', 'ApiServiceCardOrderController@cardAllowanceShow'); //套餐余量——明细
            Route::any('/ServiceCardUseList', 'ApiServiceCardOrderController@ServiceCardUseList'); //消费记录列表
            Route::any('/ServiceCardUseRecord', 'ApiServiceCardOrderController@ServiceCardUseRecord'); //消费记录列表明细
            Route::any('/month', 'ApiServiceCardOrderController@month'); //月份列表
            Route::any('/unified_order', 'ApiServiceCardController@unified_order');//h5 统一下单
            Route::any('/order_pay', 'ApiServiceCardController@order_pay');//套餐卡订单支付
            Route::any('/sale_card_list', 'ApiServiceCardController@sale_card_list'); //可售套餐卡
            Route::any('/show', 'ApiServiceCardController@show'); //套餐卡 详情
        });

        Route::group(array('prefix' => '/store'),function(){
            Route::any('/store_city_region', 'ApiStoreController@store_city_region'); //门店-城市-区县
            Route::any('/storeList', 'ApiStoreController@storeList'); //门店列表
            Route::any('/store_details','ApiStoreController@storeDetails');//门店详情
            Route::any('/storeService','ApiStoreController@storeService');//门店服务
        });

        Route::group(array('prefix' => '/evaluations'),function(){
            Route::any('/create_evaluate','ApiEvaluationController@evaluation');//评价
        });

        Route::group(array('prefix' => '/article'),function(){
            Route::any('/homePageArticle','ApiArticleController@homePageArticle');  //首页文推模块
            Route::any('/articleList','ApiArticleController@articleList');  //文章列表
            Route::any('/articleShow','ApiArticleController@articleShow');  //文章详情
            Route::any('/articleType','ApiArticleController@articleType');  //文章分类
            Route::any('/articleBrowse','ApiArticleController@articleBrowse');  //文章统计浏览量
            Route::any('/articleShareSpotFabulous ','ApiArticleController@articleShareSpotFabulous');  //文章统计点赞量
            Route::any('/articleShare','ApiArticleController@articleShare');  //文章统计分享量
            Route::any('/share','ApiArticleController@share');  //文章分享
            Route::any('/articleAddComment','ApiArticleController@articleAddComment');  //文章详情评论功能
            Route::any('/articleCommentList','ApiArticleController@articleCommentList');  //文章详情评论列表
            Route::any('/articleKeyWordtList','ApiArticleController@articleKeyWordtList');  //文章列表精选关键词列表
        });

        Route::any('/Live_broadcast','LiveBroadcastController@index');//直播
        Route::any('/Live_comment','LiveBroadcastController@Live_comment');//直播-评论列表
        Route::any('/addLiveComment','LiveBroadcastController@addLiveComment');//直播

        Route::any('/aly_limit_line','HomeController@ALYlimitLine');//限行接口(阿里云)

        Route::any('/Judge_city','PublicController@Judge_city');//统一判断城市是否开放

        Route::any('/Volume','VolumeController@Volume'); //点击量

        Route::any('/UploadFile','ORCController@UploadFile');//行驶证上传
        Route::any('/cardInfo','ORCController@cardInfo');  //行驶证识别
        Route::any('/cardOCR','ORCController@cardOCR');//行驶证识别

    });
});

/*
 * 安慧车服后台 相关路由
 * */
Route::group(array('prefix' => 'ahp'),function(){

    Route::any('/check_token','AhpLoginController@checkToken');//验证token
    Route::any('/login','AhpLoginController@login');// 用户登录
    Route::any('/lgout','AhpLoginController@lgout');//用户退出登录

    Route::any('/createUser','AhpUserController@createUser');//创建账号
    Route::any('/userList','AhpUserController@userList');//账号列表
    Route::any('/saveStatus','AhpUserController@saveStatus');//修改用户状态
    Route::any('/updateUser','AhpUserController@updateUser');//修改用户信息
    Route::any('/userDetails','AhpUserController@userDetails');//用户信息详情

    Route::any('/feedbackList','FeedBackController@feedbackList');//用户反馈list
    Route::any('/batchFeedBack','FeedBackController@batchFeedBack');//批量处理 用户反馈意见

    Route::any('/elementList','ElementController@elementList');//元素列表
    Route::any('/createElement','ElementController@createElement');//创建元素
    Route::any('/updateElement','ElementController@updateElement');//修改元素
    Route::any('/elementStatus','ElementController@elementStatus');//状态元素
    Route::any('/showElement','ElementController@showElement');//元素详情

    Route::any('/createModule','AhpModuleController@createModule');//新建模块
    Route::any('/updateModule','AhpModuleController@updateModule');//修改模块
    Route::any('/moduleList','AhpModuleController@moduleList');//模块列表
    Route::any('/moduleStatus','AhpModuleController@updateModuleStatus');//修改模块状态
    Route::any('/moduleDetails','AhpModuleController@moduleDetails');//模块详情
    Route::any('/moduleType','AhpModuleController@moduleType');//模块类型列表

    Route::any('/pageList','AhpBasePageController@pageList');//页面架构列表
    Route::any('/upPageStatus','AhpBasePageController@updatePageStatus');//修改页面架构状态
    Route::any('/editPageContent','AhpBasePageController@editPageModEle');//页面内容管理
    Route::any('/pageDetails','AhpBasePageController@pageDetails');//页面内容详情

    Route::any('/bannerList','BannerController@bannerList');//banner列表
    Route::any('/createBanner','BannerController@createBanner');//创建banner
    Route::any('/updateBanner','BannerController@updateBanner');//修改banner
    Route::any('/bannerStatus','BannerController@bannerStatus');//状态banner
    Route::any('/showBanner','BannerController@showBanner');//banner详情
    Route::any('/delBanner','BannerController@delBanner');//删除banner

    Route::any('/articleList','ArticleController@articleList');//article列表
    Route::any('/createArticle','ArticleController@createArticle');//创建article
    Route::any('/updateArticle','ArticleController@updateArticle');//修改article
    Route::any('/articleStatus','ArticleController@articleStatus');//状态article
    Route::any('/showArticle','ArticleController@showArticle');//article详情
    Route::any('/delArticle','ArticleController@delArticle');//删除article

    //3.0新版接口
    Route::group(array('prefix' => '/ahp3.0'),function(){

        Route::any('/ahp_login','AhpLoginsController@ahp_login');// 用户登录
        Route::any('/ahp_lgout','AhpLoginsController@ahp_lgout');// 用户登出

        Route::any('/index','AhpUsersController@index'); //ahp 系统用户list
        Route::any('/store','AhpUsersController@store');//管理员的 保存
        Route::any('/show','AhpUsersController@show');//管理员的 详情
        Route::any('/update','AhpUsersController@update');//管理员的 修改
        Route::any('/status','AhpUsersController@status');//管理员的 状态修改


        Route::any('/role/index', 'AhpRoleController@index');   //角色列表
        Route::any('/role/store', 'AhpRoleController@store');//角色添加编辑
        Route::any('/role/editRoleStatus', 'AhpRoleController@editRoleStatus');//角色状态修改
        Route::any('/role/getRoleRes', 'AhpRoleController@getRoleRes');//角色管理获取资源
        Route::any('/role/setAuth', 'AhpRoleController@setAuth');//设置角色权限

        Route::any('/resource/index', 'AhpResourceController@index');  //资源的列表页
        Route::any('/resource/store', 'AhpResourceController@store'); //资源的保存
        Route::any('/resource/status', 'AhpResourceController@status'); //资源的修改状态
        Route::any('/resource/show', 'AhpResourceController@show');//资源的详情页

        Route::any('/banner_list','AhpBannerController@banner_list'); //banner列表
        Route::any('/create_banner','AhpBannerController@create_banner'); //创建banner
        Route::any('/update_banner','AhpBannerController@update_banner'); //编辑banner
        Route::any('/banner_show','AhpBannerController@banner_show'); //banner详情
        Route::any('/banner_status','AhpBannerController@banner_status'); //banner状态修改
        Route::any('/summary_banner','AhpBannerController@summary_banner'); //banner汇总
        Route::any('/banner_city_list','AhpBannerController@banner_city_list'); //banner有效城市
        Route::any('/banner_effective_list','AhpBannerController@banner_effective_list'); //有效banner
        Route::any('/banner_onload','AhpBannerController@banner_onload'); //banner适配页面加载
        Route::any('/banner_launch','AhpBannerController@banner_launch'); //banner适配

        Route::any('/recommended_season','AhpRecommendedController@recommended_season'); //当季推荐

        Route::any('/service/index', 'ServiceController@index');   //服务列表
        Route::any('/service/store', 'ServiceController@store');//新建服务
        Route::any('/service/edit', 'ServiceController@edit');//修改服务
        Route::any('/service/show', 'ServiceController@show');//服务详情
        Route::any('/service/service_classify', 'ServiceController@service_classify');//服务列表服务分类
        Route::any('/service/editServiceStatus', 'ServiceController@editServiceStatus');//服务投放
        Route::any('/service/editRecommend', 'ServiceController@editRecommend');//服务推荐
        Route::any('/service/setAuth', 'ServiceController@setAuth');//服务适配
        Route::any('/service/setAuth_onload', 'ServiceController@setAuth_onload');//服务适配-页面加载
        Route::any('/service/lists', 'ServiceController@lists');//服务适配-活动包列表
        Route::any('/service/addServiceProduct', 'ServiceController@addServiceProduct');//服务适配-适配服务包-活动包-添加
        Route::any('/service/deleteServiceProduct', 'ServiceController@deleteServiceProduct');//服务适配-适配服务包-活动包-删除
        Route::any('/service/typeLists', 'ServiceController@typeLists');//服务适配-分类列表

        Route::any('/article/addArticle', 'AhpArticleController@add_article');//添加文章/修改文章
        Route::any('/article/articleList', 'AhpArticleController@articleList');//文章列表
        Route::any('/article/articleRecommend', 'AhpArticleController@articleRecommend');//推荐文章
        Route::any('/article/articleType', 'AhpArticleController@articleType');//文章分类
        Route::any('/article/articleUploadFile', 'AhpArticleController@articleUploadFile');//文章--图片上传
        Route::any('/article/articleOnload', 'AhpArticleController@article_onload');//文章--编辑页面加载
        Route::any('/article/articleKeyword', 'AhpArticleController@articleKeyword');//文章--关键词使用
        Route::any('/article/articleLaunch', 'AhpArticleController@articleLaunch');//文章--投放
        Route::any('/article/qrCode', 'AhpArticleController@qrCode');//文章--生成二维码
        Route::any('/article/articleCommentList', 'AhpArticleController@articleCommentList');//文章--评论列表
        Route::any('/article/keyWordList', 'AhpArticleController@keyWordList');//关键词列表
        Route::any('/article/articleCommentSave', 'AhpArticleController@articleCommentSave');//评论 审核、置顶、违规
        Route::any('/article/articleCommentReply', 'AhpArticleController@articleCommentReply');//评论 官方回复
        Route::any('/article/articleComment', 'AhpArticleController@articleComment');//评论 官方评论
        Route::any('/article/articleKeyWordSave', 'AhpArticleController@articleKeyWordSave');//关键词 状态修改、精选

        Route::any('/store/index', 'AhpStoreController@index');//门店--列表
        Route::any('/store/show', 'AhpStoreController@show');//门店--详情(信息、直播)
        Route::any('/store/updeteStatus', 'AhpStoreController@updeteStatus');//门店--投放
        Route::any('/store/store_basic_save', 'AhpStoreController@store_basic_save');//门店信息保存
        Route::any('/store/store_live_save', 'AhpStoreController@store_live_save');//门店直播保存
        Route::any('/store/store_service', 'AhpStoreController@store_service');//门店服务保存
        Route::any('/store/del_store_service', 'AhpStoreController@del_store_service');//门店服务删除
        Route::any('/store/storeServiceList', 'AhpStoreController@storeServiceList');//门店服务列表
        Route::any('/store/save_store_service', 'AhpStoreController@save_store_service');//门店服务是否C端展示

        Route::any('/city/cityList', 'AhpCityController@cityList');//城市列表
        Route::any('/city/cityAll', 'AhpCityController@cityAll');//城市列表下拉菜单
        Route::any('/city/city_limit', 'AhpCityController@city_limit');//城市限行
        Route::any('/city/cityLimitShow', 'AhpCityController@cityLimitShow');//城市限行配置详情

        Route::any('/batchFeedBack','AhpFeedBackController@batchFeedBack');//批量处理 用户反馈意见

        Route::any('/AhpUploadFile', 'AhpUploadController@AhpUploadFile');//图片上传
        Route::any('/UploadFile', 'AhpUploadController@UploadFile');//通用图片上传

    });

});


/**
 * 安惠养车官网
 */
Route::group(array('prefix' => '/web'), function(){
    Route::any('/store/storeList','WebStoreController@storeList');  //门店列表
});

/**
 * OA系统 相关路由
 */
Route::group(array('prefix' => 'oa'), function(){
    /**
     * 用户相关
     */
    Route::group(array('prefix' => '/user'),function(){
        Route::any('/login','OAUserController@login');                  // 用户登录
        Route::any('/checkToken','OAUserController@checkToken');        //验证token
        Route::any('/logout','OAUserController@logout');                //登出
        Route::any('/modifyPwd','OAUserController@modifyPwd');          //修改密码
        Route::any('/userInfo','OAUserController@userInfo');            //用户信息
        Route::any('/department','OAUserController@department');        //部门列表
        Route::any('/employeeList','OAUserController@employeeList');    //员工列表
        Route::any('/storeOaUser','OAUserController@storeOaUser');      //添加、编辑 OA系统用户
        Route::any('/status','OAUserController@status');                //变更OA系统用户状态
        Route::any('/hrmUserDetails','OAUserController@hrmUserDetails');//组织架构用户详情
        
    });
    
    /**
     * 资源相关
     */
    Route::group(array('prefix' => '/resource'),function(){
        Route::any('/index','OAResourceController@index');                  //资源列表
        Route::any('/store','OAResourceController@store');                  //添加、修改资源
        Route::any('/status','OAResourceController@status');                //变更资源状态
        Route::any('/show','OAResourceController@show');                    //资源详情
        Route::any('/allResource','OAResourceController@allResource');      //获取所有资源列表
    });
    
    /**
     * 角色相关
     */
    Route::group(array('prefix' => '/role'),function(){
        Route::any('/index','OARoleController@index');                      //角色列表
        Route::any('/indexAll','OARoleController@indexAll');                //获取所有的角色列表以及该角色下的用户
        Route::any('/store','OARoleController@store');                      //添加、修改角色
        Route::any('/status','OARoleController@status');                    //变更角色状态
        Route::any('/getRoleDetails','OARoleController@getRoleDetails');    //获取角色详情
        Route::any('/setUserRole','OARoleController@setUserRole');          //设置用户角色
        Route::any('/getUserList','OARoleController@getUserList');          //获取OA用户列表
        Route::any('/getUserListBySearch','OARoleController@getUserListBySearch');          //获取OA用户列表 [根据姓名模糊搜索]
    });
    
    
    /**
     * 审批相关
     */
    Route::group(array('prefix' => '/approval'),function(){
        Route::any('/approvalTypeList','OAApprovalController@approvalTypeList');                            //审批类型列表(搜索)
        Route::any('/approvalTypeAllList','OAApprovalController@approvalTypeAllList');                      //审批类型全部数据
        Route::any('/approvalTypeStore','OAApprovalController@approvalTypeStore');                          //添加、修改审批类型
        Route::any('/approvalTypeStatus','OAApprovalController@approvalTypeStatus');                        //变更审批类型状态
        Route::any('/approvalTypeDetails','OAApprovalController@approvalTypeDetails');                      //审批类型详情
        Route::any('/approvalModelAdd','OAApprovalController@approvalModelAdd');                            //添加审批模型
        Route::any('/approvalModelModify','OAApprovalController@approvalModelModify');                      //修改审批模型
        Route::any('/approvalModelDetails','OAApprovalController@approvalModelDetails');                    //获取审批模型详情
        Route::any('/uploadFile','OAApprovalController@uploadFile');                                        //上传附件
        Route::any('/deleteFile','OAApprovalController@deleteFile');                                        //删除附件
        Route::any('/applyAdd','OAApprovalController@applyAdd');                                            //添加申请
        Route::any('/applyDetails','OAApplyController@infoApply');                                          //获取申请详情
        Route::any('/addCc','OAApprovalController@addCc');                                                  //添加申请抄送人
        Route::any('/transferApproval','OAApprovalController@transferApproval');                            //审批转发
        Route::any('/applyCancel','OAApprovalController@applyCancel');                                      //申请撤回
        Route::any('/applyDelete','OAApprovalController@applyDelete');                                      //申请删除 (对自己不展示)
        Route::any('/index', 'OAApprovalModelController@index');                     //审批模板列表
        Route::any('/searchList', 'OAApprovalModelController@searchList');            //审批设置列表
        Route::any('/openStartStatus', 'OAApprovalModelController@openStartStatus');  //审批设置列表
    });

    /**
     * 申请相关
     */
    Route::group(array('prefix' => '/apply'),function(){
        Route::any('/active','OAApplyController@activeApply');                     //我的申请列表(搜索)
        Route::any('/passive','OAApplyController@passiveApply');                   //我的审批列表(搜索)
        Route::any('/copy','OAApplyController@copyApply');                         //抄送给我的审批列表(搜索)
        Route::any('/agreeOrNo','OAApplyController@agreeOrNo');                    //开始审批
        Route::any('/countAll', 'OAApplyController@countAll');                     //所有列表数量
    });
    /**
     * 消息相关
     */
    Route::group(array('prefix' => '/newsnotice'),function(){
        Route::any('/index', 'OANewsNoticeController@index');                      //消息信息
        Route::any('/read', 'OANewsNoticeController@readStatus');                  //修改信息状态
    });
});

/**
 * ASS系统 相关路由
 */
Route::group(array('prefix' => 'ass'), function(){
    /**
     * 用户相关
     */
    Route::group(array('prefix' => '/user'),function(){
        Route::any('/login','ASSUserController@login');                  // 用户登录
        Route::any('/create/ass','ASSUserController@create');            // 创建用户
        Route::any('/logout','ASSUserController@logout');                // 用户登出
        Route::any('/store','ASSUserController@store');                  // 修改用户信息
        Route::any('/loginData','ASSUserController@supplierLoginInfo');  // 供应商登录次数
    });
    
    /**
     * 供应商相关
     */
    Route::group(array('prefix' => '/supply'),function(){
        Route::any('/getShopList','ASSSupplierController@getShopList');     // 获取门店列表信息
        Route::any('/getSupplyItemList','ASSSupplierController@getSupplyItemList');     //供货情况统计
    });

});

Route::group(array('prefix' => 'wechat2.0'),function(){
    /*
     * 用户相关
     * */
    Route::group(array('prefix' => '/user'),function(){
        Route::any('/lists','WechatUserController@lists'); //获取用户列表
    });


    //设置菜单
    // http://api.yangche1hao.com/wechat/menu?token=1&menu=1
    Route::any('/menu','WeChatMenuController@set_menu');

    //授权获取用户信息
    // http://api.yangche1hao.com/wechat/auth
    Route::any('/auth','WeChatAuthController@get_auth');

    //授权获取用户信息
    // http://api.anhui.com/wechat/send?token=1&openid=oxJpzs9sls5b7TYtPfDj8pSHw8Do&msg=胖子刘云涛
    Route::any('/send','WeChatStaffController@send_msg');

    // 测试微信SDK
    Route::any('/test','HomeController@notice');

    // http://api.yangche1hao.com/wechat/token
    Route::any('/token',function(){
        $token = WeChat::get_access_token();
        return $token;
    });

    // http://api.yangche1hao.com/wechat/callbackip?access_token=7uQY8RMSxqIZ0YGIbZ8VprKr6wShPnpyZ5yK8PzojG0tHtg2-hpUuJcp_mQ5sggdu678gRJI4NtoTMbObDaTV52qK0I45q5Y4kr5PLpo1zYEVBaAFAMDJ
    Route::any('/callbackip',function(){
        $access_token = Input::get('access_token');
        $ip_list = WeChat::get_callback_ip($access_token);
        return $ip_list;
    });

    // http://api.yangche1hao.com/wechat/authorize
    Route::any('/authorize',function(){
       // $all = Input::all();
        $code = Input::get('code');
        $auto_access_token = WeChat::get_oauth_access_token($code);

        $auto_access_token = json_decode($auto_access_token->body);
        $access_token = $auto_access_token->access_token;
        $openid = $auto_access_token->openid;
        $refresh_token = $auto_access_token->refresh_token;
        var_dump($openid);
        exit;
       // $user_info = WeChat::get_user_info($access_token,$openid);
       // $refresh = WeChat::refresh_oauth_access_token($refresh_token);
       // $check = WeChat::check_oauth_access_token($access_token,$openid);

        $message_modul_id = 'ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY';
        $link_url = 'http://www.baidu.com';
        $access_token = 'Su--xwwSylwZU_mnzrLCLPkNTh105JYEsFc4rXLBzSlAdaiO0OanLNGsqin2ZfXCcv94Sxc7QE4-vFveT-MwEpRb9T7IYee1aa9keNaDRqEFATeABAUPI';
        $data = array(
           // 'first' => array(
           //     'value' => '恭喜',
           //     'color' => '#173177'
           // ),
           // 'keynote1' => array(
           //     'value' => '测试信息第一条',
           //     'color' => '#173177'
           // ),
           // 'keynote2' => array(
           //     'value' => '测试信息第二条',
           //     'color' => '#173177'
           // ),
           // 'remark' => array(
           //     'value' => '欢迎再次关注',
           //     'color' => '#173177'
           // ),
        );
        $push = WeChat::send_message($access_token,$openid,$message_modul_id,$link_url,$data);
        return $push;
    });    
});
/*
 * 旺pos接口
 * */
Route::group(array('prefix' => 'pos'),function(){
    /*
     * 接入
     * */
    Route::group(array('prefix' => '/join'),function(){
        Route::any('/check','PosJoinController@check'); //接入验证
        Route::any('/token','PosTokenController@token'); //获取token
    });

    /*
     * 设备
     * */
    Route::group(array('prefix' => '/device'),function(){
        Route::any('/status','PosDeviceController@status'); //设备状态
    });

    /*
     * 支付
     * */
    Route::group(array('prefix' => '/pay'),function(){
        Route::any('/prepare','PosPayController@prepareOrder'); //支付请求
        Route::any('/status','PosPayController@statusOrder'); //支付状态查询
        Route::any('/notify','PosPayController@notifyOrder'); //支付通知
        Route::any('/refund','PosPayController@refundOrder'); //退单
    });
});
